forked from apple/swift-clang
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dropped the parentheses for #pragma message and its kin in the -E out…
…put generator. This was a suggestion by Jordan Rose since the documented format for these pragmas is without the parentheses. At the same time, I've increased test coverage too for the preprocessed output. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@179771 91177308-0d34-0410-b5e6-96231b3b80d8
- Loading branch information
Showing
3 changed files
with
23 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// RUN: %clang_cc1 -E -Werror -verify %s 2>&1 | FileCheck %s | ||
|
||
#pragma message "\\test" // expected-warning {{\test}} | ||
// CHECK: #pragma message "\134test" | ||
|
||
#pragma message("\\test") // expected-warning {{\test}} | ||
// CHECK: #pragma message "\134test" | ||
|
||
#pragma GCC warning "\"" "te" "st" "\"" // expected-warning {{"test"}} | ||
// CHECK: #pragma GCC warning "\042test\042" | ||
|
||
#pragma GCC warning("\"" "te" "st" "\"") // expected-warning {{"test"}} | ||
// CHECK: #pragma GCC warning "\042test\042" | ||
|
||
#pragma GCC error "" "[ ]" "" // expected-error {{[ ]}} | ||
// CHECK: #pragma GCC error "[\011]" | ||
|
||
#pragma GCC error("" "[ ]" "") // expected-error {{[ ]}} | ||
// CHECK: #pragma GCC error "[\011]" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters