diff options
author | Steve Naroff <snaroff@apple.com> | 2008-02-14 02:58:32 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2008-02-14 02:58:32 +0000 |
commit | f631997cb5473abb1b6115deeb1a83be4758e01f (patch) | |
tree | 4a5e776afd14dc690f1088b11d2fbbcf0fbdac5d /clang/test/Sema/declspec.c | |
parent | a4621f04bb5d54ecb1ade18d36f2631ceabce98f (diff) | |
download | bcm5719-llvm-f631997cb5473abb1b6115deeb1a83be4758e01f.tar.gz bcm5719-llvm-f631997cb5473abb1b6115deeb1a83be4758e01f.zip |
A much better fix for http://llvm.org/bugs/show_bug.cgi?id=1987.
llvm-svn: 47103
Diffstat (limited to 'clang/test/Sema/declspec.c')
-rw-r--r-- | clang/test/Sema/declspec.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/clang/test/Sema/declspec.c b/clang/test/Sema/declspec.c index fd575406812..e262b343cbb 100644 --- a/clang/test/Sema/declspec.c +++ b/clang/test/Sema/declspec.c @@ -5,8 +5,12 @@ T foo(int n, int m) { } // expected-error {{cannot return array or function}} void foof(const char *, ...) __attribute__((__format__(__printf__, 1, 2))), barf (void); +int typedef validTypeDecl() { } // expected-error {{function definition declared 'typedef'}} + struct _zend_module_entry { } typedef struct _zend_function_entry { } // expected-error {{cannot combine with previous 'struct' declaration specifier}} -static void buggy(int *x) { // expected-error {{cannot combine with previous 'typedef' declaration specifier}} \ - // expected-error {{cannot combine with previous 'struct' declaration specifier}} - // expected-error {{expected '}'}} +static void buggy(int *x) { } // expected-error {{function definition declared 'typedef'}} \ + // expected-error {{cannot combine with previous 'typedef' declaration specifier}} \ + // expected-error {{cannot combine with previous 'struct' declaration specifier}} + + |