Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Import / if-stmt / test.cpp
blob8c92a72c0129080429f455d9b40e3b42c7aa9a49
1 // RUN: clang-import-test -dump-ast -import %S/Inputs/F.cpp -expression %s | FileCheck %s
3 // CHECK: IfStmt
4 // CHECK-NEXT: CXXBoolLiteralExpr
5 // CHECK-NEXT: ReturnStmt
7 // CHECK: IfStmt
8 // CHECK-NEXT: DeclStmt
9 // CHECK-NEXT: VarDecl
10 // CHECK-NEXT: IntegerLiteral
11 // CHECK-NEXT: ImplicitCastExpr
12 // CHECK-NEXT: ImplicitCastExpr
13 // CHECK-NEXT: DeclRefExpr
14 // CHECK-NEXT: ReturnStmt
16 // CHECK: IfStmt
17 // CHECK-NEXT: DeclStmt
18 // CHECK-NEXT: VarDecl
19 // CHECK-NEXT: CXXBoolLiteralExpr
20 // CHECK-NEXT: ReturnStmt
22 // CHECK: IfStmt
23 // CHECK-NEXT: CXXBoolLiteralExpr
24 // CHECK-NEXT: ReturnStmt
25 // CHECK-NEXT: ReturnStmt
27 // CHECK: IfStmt
28 // CHECK-NEXT: CXXBoolLiteralExpr
29 // CHECK-NEXT: CompoundStmt
30 // CHECK-NEXT: ReturnStmt
31 // CHECK-NEXT: CompoundStmt
32 // CHECK-NEXT: ReturnStmt
34 void expr() {
35 f();