blob: 200ced9fba7a2e8bb1ab58862496788b0900a7f4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
// RUN: clang-cc -E %s -o - | FileCheck -strict-whitespace %s
#define y(a) ..a
A: y(.)
// This should print as ".. ." to avoid turning into ...
// CHECK: A: . . .
#define DOT .
C: ..DOT
// CHECK: C: .. .
#define PLUS +
#define EMPTY
#define f(x) =x=
D: +PLUS -EMPTY- PLUS+ f(=)
// CHECK: D: + + - - + + = = =
#define test(x) L#x
E: test(str)
// Should expand to L "str" not L"str"
// CHECK: E: L "str"
|