2018-08-23 06:47:10 +08:00
|
|
|
// 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
|
2018-11-09 08:41:36 +08:00
|
|
|
// CHECK-NEXT: ConstantExpr
|
2018-08-23 06:47:10 +08:00
|
|
|
// CHECK-NEXT: IntegerLiteral
|
|
|
|
// CHECK-NEXT: CaseStmt
|
2018-11-09 08:41:36 +08:00
|
|
|
// CHECK-NEXT: ConstantExpr
|
2018-08-23 06:47:10 +08:00
|
|
|
// CHECK-NEXT: IntegerLiteral
|
|
|
|
// CHECK-NEXT: BreakStmt
|
2018-10-29 23:04:19 +08:00
|
|
|
// CHECK-NEXT: CaseStmt
|
2018-11-09 08:41:36 +08:00
|
|
|
// CHECK-NEXT: ConstantExpr
|
2018-10-29 23:04:19 +08:00
|
|
|
// CHECK-NEXT: IntegerLiteral
|
2018-11-09 08:41:36 +08:00
|
|
|
// CHECK-NEXT: ConstantExpr
|
2018-10-29 23:04:19 +08:00
|
|
|
// CHECK-NEXT: IntegerLiteral
|
|
|
|
// CHECK-NEXT: CaseStmt
|
2018-11-09 08:41:36 +08:00
|
|
|
// CHECK-NEXT: ConstantExpr
|
2018-10-29 23:04:19 +08:00
|
|
|
// CHECK-NEXT: IntegerLiteral
|
2018-11-09 08:41:36 +08:00
|
|
|
// CHECK-NEXT: ConstantExpr
|
2018-10-29 23:04:19 +08:00
|
|
|
// CHECK-NEXT: IntegerLiteral
|
|
|
|
// CHECK-NEXT: BreakStmt
|
2018-08-23 06:47:10 +08:00
|
|
|
|
|
|
|
// CHECK: SwitchStmt
|
|
|
|
// CHECK-NEXT: DeclStmt
|
|
|
|
// CHECK-NEXT: VarDecl
|
|
|
|
// CHECK-SAME: varname
|
|
|
|
// CHECK-NEXT: IntegerLiteral
|
|
|
|
// CHECK-NEXT: CompoundStmt
|
|
|
|
// CHECK-NEXT: CaseStmt
|
2018-11-09 08:41:36 +08:00
|
|
|
// CHECK-NEXT: ConstantExpr
|
2018-08-23 06:47:10 +08:00
|
|
|
// CHECK-NEXT: IntegerLiteral
|
|
|
|
// CHECK-NEXT: BreakStmt
|
|
|
|
// CHECK-NEXT: CaseStmt
|
2018-11-09 08:41:36 +08:00
|
|
|
// CHECK-NEXT: ConstantExpr
|
2018-08-23 06:47:10 +08:00
|
|
|
// CHECK-NEXT: IntegerLiteral
|
|
|
|
// CHECK-NEXT: BreakStmt
|
2018-10-29 23:04:19 +08:00
|
|
|
// CHECK-NEXT: CaseStmt
|
2018-11-09 08:41:36 +08:00
|
|
|
// CHECK-NEXT: ConstantExpr
|
2018-10-29 23:04:19 +08:00
|
|
|
// CHECK-NEXT: IntegerLiteral
|
2018-11-09 08:41:36 +08:00
|
|
|
// CHECK-NEXT: ConstantExpr
|
2018-10-29 23:04:19 +08:00
|
|
|
// CHECK-NEXT: IntegerLiteral
|
|
|
|
// CHECK-NEXT: BreakStmt
|
2018-08-23 06:47:10 +08:00
|
|
|
|
|
|
|
// CHECK: SwitchStmt
|
|
|
|
// CHECK-NEXT: IntegerLiteral
|
|
|
|
// CHECK-NEXT: DefaultStmt
|
|
|
|
// CHECK-NEXT: BreakStmt
|
|
|
|
|
|
|
|
// CHECK: SwitchStmt
|
|
|
|
// CHECK-NEXT: IntegerLiteral
|
|
|
|
// CHECK-NEXT: NullStmt
|
|
|
|
|
|
|
|
void expr() {
|
|
|
|
f();
|
|
|
|
}
|