diff options
author | Chris Lattner <sabre@nondot.org> | 2008-04-02 01:05:10 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-04-02 01:05:10 +0000 |
commit | 81cb9e8637876697d0cb73449b9c9f111cf0eb83 (patch) | |
tree | 64c847d6d9fea9dc20f673862f53cae9103944b5 /clang/test/Sema/decl-invalid.c | |
parent | 9b94b178068f460fbedc4da64b4f3ede8ec0e011 (diff) | |
download | bcm5719-llvm-81cb9e8637876697d0cb73449b9c9f111cf0eb83.tar.gz bcm5719-llvm-81cb9e8637876697d0cb73449b9c9f111cf0eb83.zip |
Fix PR2017 and silence some bogus errors.
llvm-svn: 49068
Diffstat (limited to 'clang/test/Sema/decl-invalid.c')
-rw-r--r-- | clang/test/Sema/decl-invalid.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/Sema/decl-invalid.c b/clang/test/Sema/decl-invalid.c index d241adcf2ae..281e8a8d5c0 100644 --- a/clang/test/Sema/decl-invalid.c +++ b/clang/test/Sema/decl-invalid.c @@ -1,3 +1,11 @@ // RUN: clang %s -fsyntax-only -verify typedef union <anonymous> __mbstate_t; // expected-error: {{expected identifier or}} + + +// PR2017 +void x(); +int a() { + int r[x()]; // expected-error: {{size of array has non-integer type 'void'}} +} + |