Home | History | Annotate | Download | only in Preprocessor
      1 // RUN: %clang_cc1 -E %s | FileCheck --strict-whitespace %s
      2 
      3 #define A(b) -#b  ,  - #b  ,  -# b  ,  - # b
      4 A()
      5 
      6 // CHECK: {{^}}-"" , - "" , -"" , - ""{{$}}
      7 
      8 
      9 #define t(x) #x
     10 t(a
     11 c)
     12 
     13 // CHECK: {{^}}"a c"{{$}}
     14 
     15 #define str(x) #x
     16 #define f(x) str(-x)
     17 f(
     18     1)
     19 
     20 // CHECK: {{^}}"-1"
     21