diff options
| author | Andy Gibbs <andyg1001@hotmail.co.uk> | 2013-04-19 17:13:17 +0000 |
|---|---|---|
| committer | Andy Gibbs <andyg1001@hotmail.co.uk> | 2013-04-19 17:13:17 +0000 |
| commit | aa0b94a2d8fba8ff1955476e0ee63da8bac0733f (patch) | |
| tree | e092273ef2bc3f23ee4b5a3467988854862cf2fa /clang/test | |
| parent | 25b555a6bfb248507889d3342cb175146a826bcb (diff) | |
| download | bcm5719-llvm-aa0b94a2d8fba8ff1955476e0ee63da8bac0733f.tar.gz bcm5719-llvm-aa0b94a2d8fba8ff1955476e0ee63da8bac0733f.zip | |
Keep the parentheses in #pragma message (partial revert of r179771).
llvm-svn: 179862
Diffstat (limited to 'clang/test')
| -rw-r--r-- | clang/test/Lexer/pragma-message2.c | 4 | ||||
| -rw-r--r-- | clang/test/Lexer/pragma-operators.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/clang/test/Lexer/pragma-message2.c b/clang/test/Lexer/pragma-message2.c index 4b4078243b2..224ccfbbf8f 100644 --- a/clang/test/Lexer/pragma-message2.c +++ b/clang/test/Lexer/pragma-message2.c @@ -1,10 +1,10 @@ // RUN: %clang_cc1 -E -Werror -verify %s 2>&1 | FileCheck %s #pragma message "\\test" // expected-warning {{\test}} -// CHECK: #pragma message "\134test" +// CHECK: #pragma message("\134test") #pragma message("\\test") // expected-warning {{\test}} -// CHECK: #pragma message "\134test" +// CHECK: #pragma message("\134test") #pragma GCC warning "\"" "te" "st" "\"" // expected-warning {{"test"}} // CHECK: #pragma GCC warning "\042test\042" diff --git a/clang/test/Lexer/pragma-operators.cpp b/clang/test/Lexer/pragma-operators.cpp index 7402f9f8c4b..6a5a498a151 100644 --- a/clang/test/Lexer/pragma-operators.cpp +++ b/clang/test/Lexer/pragma-operators.cpp @@ -32,6 +32,6 @@ B(foo) // CHECK: #pragma comment(lib, "libfoo") // CHECK: #pragma clang diagnostic ignored "-Wunused" // CHECK: #pragma clang diagnostic error "-Wunused" -// CHECK: #pragma message "\042Hello\042, world!" +// CHECK: #pragma message("\042Hello\042, world!") // CHECK: 0; int n = pragma_L pragma_u8 pragma_u pragma_U pragma_R pragma_UR pragma_hello 0; |

