aboutsummaryrefslogtreecommitdiff
path: root/test/Preprocessor/warning_tests.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Preprocessor/warning_tests.c')
-rw-r--r--test/Preprocessor/warning_tests.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/Preprocessor/warning_tests.c b/test/Preprocessor/warning_tests.c
index 3f2865cdb4..ac0b37b645 100644
--- a/test/Preprocessor/warning_tests.c
+++ b/test/Preprocessor/warning_tests.c
@@ -11,7 +11,9 @@
#warning Should have -Wparentheses
#endif
-#if __has_warning(-Wfoo) // expected-error {{builtin warning check macro requires a parenthesized string}}
+// expected-error@+2 {{builtin warning check macro requires a parenthesized string}}
+// expected-error@+1 {{expected value in expression}}
+#if __has_warning(-Wfoo)
#endif
// expected-warning@+3 {{Not a valid warning flag}}