summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/array-init.c
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2014-10-20 23:26:58 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2014-10-20 23:26:58 +0000
commitab506adf7d3ced6abcaf42f92de3d6cd15fa19e8 (patch)
tree58e29f07d41e8ad46b8e282367d45b8dbf207a37 /clang/test/Sema/array-init.c
parente6b994eb93b6825d396e8ee66e791611ba112d25 (diff)
downloadbcm5719-llvm-ab506adf7d3ced6abcaf42f92de3d6cd15fa19e8.tar.gz
bcm5719-llvm-ab506adf7d3ced6abcaf42f92de3d6cd15fa19e8.zip
Switch C compilations to C11 by default.
This is long-since overdue, and matches GCC 5.0. This should also be backwards-compatible, because we already supported all of C11 as an extension in C99 mode. llvm-svn: 220244
Diffstat (limited to 'clang/test/Sema/array-init.c')
-rw-r--r--clang/test/Sema/array-init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Sema/array-init.c b/clang/test/Sema/array-init.c
index 4cc5e412c2d..7cb48153168 100644
--- a/clang/test/Sema/array-init.c
+++ b/clang/test/Sema/array-init.c
@@ -1,5 +1,5 @@
-// RUN: %clang_cc1 -fsyntax-only -pedantic -verify %s
-// RUN: %clang_cc1 -fsyntax-only -Wgnu -Wc11-extensions -verify %s
+// RUN: %clang_cc1 -std=gnu99 -fsyntax-only -pedantic -verify %s
+// RUN: %clang_cc1 -std=gnu99 -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