Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Preprocessor / stringize_space.c
blob43276264eb4e71bb2d0177125987bc8c747a3676
1 // RUN: %clang_cc1 -E %s | FileCheck --strict-whitespace %s
2 // RUN: %clang_cc1 -E -P -fminimize-whitespace %s | FileCheck --strict-whitespace %s --check-prefix=MINWS
4 #define A(b) -#b , - #b , -# b , - # b
5 A()
7 // CHECK: {{^}}-"" , - "" , -"" , - ""{{$}}
8 // MINWS: {{^}}-"",-"",-"",-""
10 #define t(x) #x
11 t(a
14 // CHECK: {{^}}"a c"{{$}}
15 // MINWS-SAME: "a c"
17 #define str(x) #x
18 #define f(x) str(-x)
22 // CHECK: {{^}}"-1"
23 // MINWS-SAME: "-1"
25 #define paste(a,b) str(a<b##ld)
26 paste(hello1, wor)
27 paste(hello2,
28 wor)
29 paste(hello3,
30 wor)
32 // CHECK: {{^}}"hello1<world"
33 // CHECK: {{^}}"hello2<world"
34 // CHECK: {{^}}"hello3<world"
35 // MINWS-SAME: {{^}}"hello1<world""hello2<world""hello3<world"{{$}}