aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/array-init.c
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2012-09-20 01:02:05 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2012-09-20 01:02:05 +0000
commit561e3c68864d11f39a07a6d1711ce08d2739a263 (patch)
tree6c3851e62a7fada7d457aad47bea124d9c2c7292 /test/Sema/array-init.c
parent407c8470d50be8edaae7ed39a3139adf35af2921 (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/Sema/array-init.c')
-rw-r--r--test/Sema/array-init.c1
1 files changed, 1 insertions, 0 deletions
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)}}