summaryrefslogtreecommitdiff
path: root/test/Sema/anonymous-struct-union-c11.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
commitb241411e502002395e4dcb2083bb3328dff66bd4 (patch)
treebaec1a891238d8b596528168e0c56be9d397aee7 /test/Sema/anonymous-struct-union-c11.c
parentf2d455f0bbf6df29106ef1153e505ff403f59dfc (diff)
downloadclang-b241411e502002395e4dcb2083bb3328dff66bd4.tar.gz
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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@220244 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/anonymous-struct-union-c11.c')
-rw-r--r--test/Sema/anonymous-struct-union-c11.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Sema/anonymous-struct-union-c11.c b/test/Sema/anonymous-struct-union-c11.c
index 229ee52057..712e29e549 100644
--- a/test/Sema/anonymous-struct-union-c11.c
+++ b/test/Sema/anonymous-struct-union-c11.c
@@ -1,8 +1,8 @@
// Check for warnings in non-C11 mode:
-// RUN: %clang_cc1 -fsyntax-only -verify -Wc11-extensions %s
+// RUN: %clang_cc1 -fsyntax-only -std=c99 -verify -Wc11-extensions %s
// Expect no warnings in C11 mode:
-// RUN: %clang_cc1 -fsyntax-only -pedantic -Werror -std=c11 %s
+// RUN: %clang_cc1 -fsyntax-only -std=c11 -pedantic -Werror %s
struct s {
int a;