diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-09-20 01:02:05 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-09-20 01:02:05 +0000 |
commit | 561e3c68864d11f39a07a6d1711ce08d2739a263 (patch) | |
tree | 6c3851e62a7fada7d457aad47bea124d9c2c7292 /test | |
parent | 407c8470d50be8edaae7ed39a3139adf35af2921 (diff) |
PR13881: Add -Wzero-length-array for zero length array extension, and move it into -Wgnu.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164272 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/Misc/warning-flags.c | 2 | ||||
-rw-r--r-- | test/Sema/array-init.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/test/Misc/warning-flags.c b/test/Misc/warning-flags.c index a1a0d7ed76..fb5cd5cc27 100644 --- a/test/Misc/warning-flags.c +++ b/test/Misc/warning-flags.c @@ -180,4 +180,4 @@ CHECK-NEXT: warn_weak_import The list of warnings in -Wpedantic should NEVER grow. -CHECK: Number in -Wpedantic (not covered by other -W flags): 38 +CHECK: Number in -Wpedantic (not covered by other -W flags): 37 diff --git a/test/Sema/array-init.c b/test/Sema/array-init.c index ad0fc708d7..b3cae60495 100644 --- a/test/Sema/array-init.c +++ b/test/Sema/array-init.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -pedantic -verify %s +// RUN: %clang_cc1 -fsyntax-only -Wgnu -Wc11-extensions -verify %s // REQUIRES: LP64 extern int foof() = 1; // expected-error{{illegal initializer (only variables can be initialized)}} |