Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Frontend / rewrite-macros.c
blob759afb096a2d344ce242afc079668e5969dd5883
1 // RUN: %clang_cc1 %s -verify -rewrite-macros -o %t
2 // RUN: FileCheck %s < %t
4 // Any CHECK line comments are included in the output, so we use some extra
5 // regex brackets to make sure we don't match the CHECK lines themselves.
7 #define A(a,b) a ## b
9 // CHECK: {{^}} 12 /*A*/ /*(1,2)*/{{$}}
10 A(1,2)
12 // CHECK: {{^}} /*_Pragma("mark")*/{{$}}
13 _Pragma("mark")
15 // CHECK: /*#warning eek*/{{$}}
16 /* expected-warning {{eek}} */ #warning eek
18 // CHECK: {{^}}//#pragma mark mark{{$}}
19 #pragma mark mark