aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/anonymous-struct-union-c11.c
diff options
context:
space:
mode:
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 229ee520575e..712e29e5496a 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;