diff options
Diffstat (limited to 'test/Preprocessor/warning_tests.c')
-rw-r--r-- | test/Preprocessor/warning_tests.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/Preprocessor/warning_tests.c b/test/Preprocessor/warning_tests.c index c0c22ef2d71f..1f2e884a5882 100644 --- a/test/Preprocessor/warning_tests.c +++ b/test/Preprocessor/warning_tests.c @@ -12,7 +12,7 @@ #endif // expected-error@+2 {{expected string literal in '__has_warning'}} -// expected-error@+1 {{expected value in expression}} +// expected-error@+1 {{missing ')'}} expected-note@+1 {{match}} #if __has_warning(-Wfoo) #endif @@ -22,8 +22,7 @@ #warning Not a valid warning flag #endif -// expected-error@+2 {{builtin warning check macro requires a parenthesized string}} -// expected-error@+1 {{invalid token}} +// expected-error@+1 {{missing '(' after '__has_warning'}} #if __has_warning "not valid" #endif @@ -33,7 +32,7 @@ #define MY_ALIAS "-Wparentheses" -// expected-error@+1 2{{expected}} +// expected-error@+1 {{expected}} #if __has_warning(MY_ALIAS) #error Alias expansion not allowed #endif |