36 lines · c
1// RUN: %clang_cc1 -E %s | FileCheck --strict-whitespace %s2// RUN: %clang_cc1 -E -P -fminimize-whitespace %s | FileCheck --strict-whitespace %s --check-prefix=MINWS3 4#define A(b) -#b , - #b , -# b , - # b5A()6 7// CHECK: {{^}}-"" , - "" , -"" , - ""{{$}}8// MINWS: {{^}}-"",-"",-"",-""9 10#define t(x) #x11t(a12c)13 14// CHECK: {{^}}"a c"{{$}}15// MINWS-SAME: "a c"16 17#define str(x) #x18#define f(x) str(-x)19f(20 1)21 22// CHECK: {{^}}"-1"23// MINWS-SAME: "-1"24 25#define paste(a,b) str(a<b##ld)26paste(hello1, wor)27paste(hello2,28 wor)29paste(hello3,30wor)31 32// CHECK: {{^}}"hello1<world"33// CHECK: {{^}}"hello2<world"34// CHECK: {{^}}"hello3<world"35// MINWS-SAME: {{^}}"hello1<world""hello2<world""hello3<world"{{$}}36