forked from OSchip/llvm-project
58 lines
1.4 KiB
C++
58 lines
1.4 KiB
C++
// RUN: clang-import-test -dump-ast -import %S/Inputs/F.cpp -expression %s | FileCheck %s
|
|
|
|
// CHECK: SwitchStmt
|
|
// CHECK-NEXT: IntegerLiteral
|
|
// CHECK-NEXT: CompoundStmt
|
|
// CHECK-NEXT: CaseStmt
|
|
// CHECK-NEXT: ConstantExpr
|
|
// CHECK-NEXT: IntegerLiteral
|
|
// CHECK-NEXT: CaseStmt
|
|
// CHECK-NEXT: ConstantExpr
|
|
// CHECK-NEXT: IntegerLiteral
|
|
// CHECK-NEXT: BreakStmt
|
|
// CHECK-NEXT: CaseStmt
|
|
// CHECK-NEXT: ConstantExpr
|
|
// CHECK-NEXT: IntegerLiteral
|
|
// CHECK-NEXT: ConstantExpr
|
|
// CHECK-NEXT: IntegerLiteral
|
|
// CHECK-NEXT: CaseStmt
|
|
// CHECK-NEXT: ConstantExpr
|
|
// CHECK-NEXT: IntegerLiteral
|
|
// CHECK-NEXT: ConstantExpr
|
|
// CHECK-NEXT: IntegerLiteral
|
|
// CHECK-NEXT: BreakStmt
|
|
|
|
// CHECK: SwitchStmt
|
|
// CHECK-NEXT: DeclStmt
|
|
// CHECK-NEXT: VarDecl
|
|
// CHECK-SAME: varname
|
|
// CHECK-NEXT: IntegerLiteral
|
|
// CHECK-NEXT: CompoundStmt
|
|
// CHECK-NEXT: CaseStmt
|
|
// CHECK-NEXT: ConstantExpr
|
|
// CHECK-NEXT: IntegerLiteral
|
|
// CHECK-NEXT: BreakStmt
|
|
// CHECK-NEXT: CaseStmt
|
|
// CHECK-NEXT: ConstantExpr
|
|
// CHECK-NEXT: IntegerLiteral
|
|
// CHECK-NEXT: BreakStmt
|
|
// CHECK-NEXT: CaseStmt
|
|
// CHECK-NEXT: ConstantExpr
|
|
// CHECK-NEXT: IntegerLiteral
|
|
// CHECK-NEXT: ConstantExpr
|
|
// CHECK-NEXT: IntegerLiteral
|
|
// CHECK-NEXT: BreakStmt
|
|
|
|
// CHECK: SwitchStmt
|
|
// CHECK-NEXT: IntegerLiteral
|
|
// CHECK-NEXT: DefaultStmt
|
|
// CHECK-NEXT: BreakStmt
|
|
|
|
// CHECK: SwitchStmt
|
|
// CHECK-NEXT: IntegerLiteral
|
|
// CHECK-NEXT: NullStmt
|
|
|
|
void expr() {
|
|
f();
|
|
}
|