Reid Spencer | 5f016e2 | 2007-07-11 17:01:13 +0000 | [diff] [blame] | 1 | // RUN: clang -E %s | grep '+ + - - + + = = =' && |
| 2 | // RUN: clang -E %s | not grep -F '...' |
Chris Lattner | b1a17ae | 2008-01-15 05:22:14 +0000 | [diff] [blame] | 3 | // RUN: clang -E %s | not grep -F 'L"str"' |
Reid Spencer | 5f016e2 | 2007-07-11 17:01:13 +0000 | [diff] [blame] | 4 | |
| 5 | // This should print as ".. ." to avoid turning into ... |
| 6 | #define y(a) ..a |
| 7 | y(.) |
| 8 | |
| 9 | #define PLUS + |
| 10 | #define EMPTY |
| 11 | #define f(x) =x= |
| 12 | +PLUS -EMPTY- PLUS+ f(=) |
| 13 | |
Chris Lattner | b1a17ae | 2008-01-15 05:22:14 +0000 | [diff] [blame] | 14 | |
| 15 | // Should expand to L "str" not L"str" |
| 16 | #define test(x) L#x |
| 17 | test(str) |
| 18 | |