diff options
author | Chris Lattner <sabre@nondot.org> | 2008-01-15 05:22:14 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-01-15 05:22:14 +0000 |
commit | 15346fae7098d12e53574090aa67039fed20062d (patch) | |
tree | 6a029c267e00dcfd56d7eea6f672d5b619dee686 /clang/test/Preprocessor/output_paste_avoid.c | |
parent | 877ca774207c0ab1275afc063cb5c94fff8f53b8 (diff) | |
download | bcm5719-llvm-15346fae7098d12e53574090aa67039fed20062d.tar.gz bcm5719-llvm-15346fae7098d12e53574090aa67039fed20062d.zip |
avoid pasting L + "foo" into L"foo".
llvm-svn: 46000
Diffstat (limited to 'clang/test/Preprocessor/output_paste_avoid.c')
-rw-r--r-- | clang/test/Preprocessor/output_paste_avoid.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/Preprocessor/output_paste_avoid.c b/clang/test/Preprocessor/output_paste_avoid.c index 842063a9084..065c73e9390 100644 --- a/clang/test/Preprocessor/output_paste_avoid.c +++ b/clang/test/Preprocessor/output_paste_avoid.c @@ -1,5 +1,6 @@ // RUN: clang -E %s | grep '+ + - - + + = = =' && // RUN: clang -E %s | not grep -F '...' +// RUN: clang -E %s | not grep -F 'L"str"' // This should print as ".. ." to avoid turning into ... #define y(a) ..a @@ -10,3 +11,8 @@ y(.) #define f(x) =x= +PLUS -EMPTY- PLUS+ f(=) + +// Should expand to L "str" not L"str" +#define test(x) L#x +test(str) + |