Home | History | Annotate | Download | only in Preprocessor
      1 // RUN: %clang_cc1 -E %s | FileCheck --strict-whitespace %s
      2 #define FOO __LINE__
      3 
      4   FOO
      5 // CHECK: {{^}}  4{{$}}
      6 
      7 // PR3579 - This should expand to the __LINE__ of the ')' not of the X.
      8 
      9 #define X() __LINE__
     10 
     11 A X(
     12 
     13 )
     14 // CHECK: {{^}}A 13{{$}}
     15 
     16