diff options
Diffstat (limited to 'test/Sema/typedef-variable-type.c')
-rw-r--r-- | test/Sema/typedef-variable-type.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/Sema/typedef-variable-type.c b/test/Sema/typedef-variable-type.c index f298968..b805b1e 100644 --- a/test/Sema/typedef-variable-type.c +++ b/test/Sema/typedef-variable-type.c @@ -1,3 +1,8 @@ -// RUN: %clang_cc1 %s -verify -fsyntax-only -pedantic +// RUN: %clang_cc1 %s -verify -fsyntax-only -pedantic -Wno-typedef-redefinition +// Make sure we accept a single typedef +typedef int (*a)[!.0]; // expected-warning{{size of static array must be an integer constant expression}} + +// And make sure we accept identical redefinitions in system headers +// (The test uses -Wno-typedef-redefinition to simulate this.) typedef int (*a)[!.0]; // expected-warning{{size of static array must be an integer constant expression}} |