Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Preprocessor / comment_save_macro.c
blobff4d458d0c18503bd989c639ce2d199ebaf72cdf
1 // RUN: %clang_cc1 -E -C %s | FileCheck -check-prefix=CHECK-C -strict-whitespace %s
2 // CHECK-C: boo bork bar // zot
3 // CHECK-C: ( 0 );
4 // CHECK-C: ( 0,1,2 );
5 // CHECK-C: ( 0,1,2 );
7 // RUN: %clang_cc1 -E -CC %s | FileCheck -check-prefix=CHECK-CC -strict-whitespace %s
8 // CHECK-CC: boo bork /* blah*/ bar // zot
9 // CHECK-CC: (/**/0/**/);
10 // CHECK-CC: (/**/0,1,2/**/);
11 // CHECK-CC: (/**/0,1,2/**/);
13 // RUN: %clang_cc1 -E %s | FileCheck -strict-whitespace %s
14 // CHECK: boo bork bar
15 // CHECK: ( 0 );
16 // CHECK: ( 0,1,2 );
17 // CHECK: ( 0,1,2 );
20 #define FOO bork // blah
21 boo FOO bar // zot
22 #define M(/**/x/**/) (/**/x/**/)
23 M(0);
24 #define M2(/**/.../**/) (/**/__VA_ARGS__/**/)
25 M2(0,1,2);
26 #define M3(/**/x.../**/) (/**/x/**/)
27 M3(0,1,2);