summaryrefslogtreecommitdiffstats
path: root/clang/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
commitb6d516e7bd413d113a782f10790d8ddce364feb2 (patch)
treeebbdcd36967ea70f414c24bbf3472f4acabfa96d /clang/test/Sema/array-init.c
parent3bef2dd5f9f8d82ed6bd6dc3d94b647a13b6df92 (diff)
downloadbcm5719-llvm-b6d516e7bd413d113a782f10790d8ddce364feb2.tar.gz
bcm5719-llvm-b6d516e7bd413d113a782f10790d8ddce364feb2.zip
PR13881: Add -Wzero-length-array for zero length array extension, and move it into -Wgnu.
llvm-svn: 164272
Diffstat (limited to 'clang/test/Sema/array-init.c')
-rw-r--r--clang/test/Sema/array-init.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/test/Sema/array-init.c b/clang/test/Sema/array-init.c
index ad0fc708d75..b3cae60495c 100644
--- a/clang/test/Sema/array-init.c
+++ b/clang/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)}}
OpenPOWER on IntegriCloud