xref: /llvm-project/clang/test/Preprocessor/hash_line.c (revision ae6b40000238e5faaaa319ffcfc713a15e459be8)
1 // The 1 and # should not go on the same line.
2 // RUN: %clang_cc1 -E %s | FileCheck --strict-whitespace %s
3 // CHECK: {{^1$}}
4 // CHECK-NEXT: {{^      #$}}
5 // CHECK-NEXT: {{^2$}}
6 // CHECK-NEXT: {{^           #$}}
7 
8 // RUN: %clang_cc1 -E -P -fminimize-whitespace %s | FileCheck --strict-whitespace %s --check-prefix=MINWS
9 // MINWS:  {{^}}1#2#{{$}}
10 
11 #define EMPTY
12 #define IDENTITY(X) X
13 1
14 EMPTY #
15 2
16 IDENTITY() #
17