From 15346fae7098d12e53574090aa67039fed20062d Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 15 Jan 2008 05:22:14 +0000 Subject: avoid pasting L + "foo" into L"foo". llvm-svn: 46000 --- clang/test/Preprocessor/output_paste_avoid.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'clang/test/Preprocessor/output_paste_avoid.c') 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) + -- cgit v1.2.3