summaryrefslogtreecommitdiff
path: root/test/Lexer/pragma-operators.cpp
diff options
context:
space:
mode:
authorJordan Rose <jordan_rose@apple.com>2012-06-15 23:33:51 +0000
committerJordan Rose <jordan_rose@apple.com>2012-06-15 23:33:51 +0000
commit0cdd1fe3ec29b5cbff9a728966ace5c5b5d614f7 (patch)
tree491d04bd2b9e24f7aa9c54aa522bcd10daebc7dd /test/Lexer/pragma-operators.cpp
parent63734d2349783662bf4b7fc24eed4cb31383b00d (diff)
downloadclang-0cdd1fe3ec29b5cbff9a728966ace5c5b5d614f7.tar.gz
[-E] Emit a rewritten _Pragma on its own line.
1. Teach Lexer that pragma lexers are like macro expansions at EOF. 2. Treat pragmas like #define/#undef when printing. 3. If we just printed a directive, add a newline before any more tokens. (4. Miscellaneous cleanup in PrintPreprocessedOutput.cpp) PR10594 and <rdar://problem/11562490> (two separate related problems) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158571 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Lexer/pragma-operators.cpp')
-rw-r--r--test/Lexer/pragma-operators.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/test/Lexer/pragma-operators.cpp b/test/Lexer/pragma-operators.cpp
index d1645adbc2..a76e0b2f97 100644
--- a/test/Lexer/pragma-operators.cpp
+++ b/test/Lexer/pragma-operators.cpp
@@ -9,7 +9,6 @@
// CHECK: #line
// CHECK: #pragma warning(push)
// CHECK: int foo() { return 0; } }
-// CHECK: #line
// CHECK: #pragma warning(pop)
#define A(X) extern "C" { __pragma(warning(push)) \
int X() { return 0; } \