Home | History | Annotate | Download | only in Preprocessor
      1 // RUN: %clang_cc1 -E %s | grep '^A: Y$'
      2 // RUN: %clang_cc1 -E %s | grep '^B: f()$'
      3 // RUN: %clang_cc1 -E %s | grep '^C: for()$'
      4 
      5 #define X() Y
      6 #define Y() X
      7 
      8 A: X()()()
      9 
     10 // PR3927
     11 #define f(x) h(x
     12 #define for(x) h(x
     13 #define h(x) x()
     14 B: f(f))
     15 C: for(for))
     16 
     17 // rdar://6880648
     18 #define f(x,y...) y
     19 f()
     20