aboutsummaryrefslogtreecommitdiff
path: root/test/Preprocessor/output_paste_avoid.c
blob: 7fe8788a267dfc1a955a1e51f16ff362132ca06a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// 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
y(.)

#define PLUS +
#define EMPTY
#define f(x) =x=
+PLUS -EMPTY- PLUS+ f(=)


// Should expand to L "str" not L"str"
#define test(x) L#x
test(str)