diff options
author | Chris Lattner <sabre@nondot.org> | 2008-01-31 06:06:29 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-01-31 06:06:29 +0000 |
commit | 868d08f9e97eb013600199594745b9997150be8f (patch) | |
tree | ad2d6b45f03c6c2ce7c831fc289eb4d8ab0edbf6 /test/Sema/function.c | |
parent | 796ef3d4a32ce8d9e76df0d5bcab07db97883064 (diff) |
Fix a bogus test
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46602 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/function.c')
-rw-r--r-- | test/Sema/function.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Sema/function.c b/test/Sema/function.c index 17cc86ef13..7e593d400c 100644 --- a/test/Sema/function.c +++ b/test/Sema/function.c @@ -13,3 +13,13 @@ void g(int (*)(const void **, const void **)); void g(int (*compar)()) { } + +// PR1965 +int t5(b); // expected-error {{parameter list without types}} +int t6(int x, g); // expected-error {{type specifier required for parameter 'g'}} + +int t7(, ); // expected-error {{type specifier required}} expected-error {{type specifier required}} +int t8(, int a); // expected-error {{type specifier required}} +int t9(int a, ); // expected-error {{type specifier required}} + + |