You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
866 B
40 lines
866 B
// RUN: clang-import-test -dump-ast -import %S/Inputs/F.cpp -expression %s | FileCheck %s
|
|
|
|
// CHECK: CXXTryStmt
|
|
// CHECK-NEXT: CompoundStmt
|
|
// CHECK-NEXT: CXXCatchStmt
|
|
// CHECK-NEXT: <<NULL>>
|
|
// CHECK-NEXT: CompoundStmt
|
|
|
|
// CHECK: CXXTryStmt
|
|
// CHECK-NEXT: CompoundStmt
|
|
// CHECK-NEXT: CXXCatchStmt
|
|
// CHECK-NEXT: VarDecl
|
|
// CHECK-SAME: 'int'
|
|
// CHECK-NEXT: CompoundStmt
|
|
|
|
// CHECK: CXXTryStmt
|
|
// CHECK-NEXT: CompoundStmt
|
|
// CHECK-NEXT: CXXCatchStmt
|
|
// CHECK-NEXT: VarDecl
|
|
// CHECK-SAME: varname
|
|
// CHECK-SAME: 'int'
|
|
// CHECK-NEXT: CompoundStmt
|
|
|
|
// CHECK: CXXTryStmt
|
|
// CHECK-NEXT: CompoundStmt
|
|
// CHECK-NEXT: CXXCatchStmt
|
|
// CHECK-NEXT: VarDecl
|
|
// CHECK-SAME: varname1
|
|
// CHECK-SAME: 'int'
|
|
// CHECK-NEXT: CompoundStmt
|
|
// CHECK-NEXT: CXXCatchStmt
|
|
// CHECK-NEXT: VarDecl
|
|
// CHECK-SAME: varname2
|
|
// CHECK-SAME: 'long'
|
|
// CHECK-NEXT: CompoundStmt
|
|
|
|
void expr() {
|
|
f();
|
|
}
|