• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // RUN: clang-import-test -dump-ast -import %S/Inputs/F.cpp -expression %s | FileCheck %s
2 
3 // CHECK: CXXTryStmt
4 // CHECK-NEXT: CompoundStmt
5 // CHECK-NEXT: CXXCatchStmt
6 // CHECK-NEXT: <<NULL>>
7 // CHECK-NEXT: CompoundStmt
8 
9 // CHECK: CXXTryStmt
10 // CHECK-NEXT: CompoundStmt
11 // CHECK-NEXT: CXXCatchStmt
12 // CHECK-NEXT: VarDecl
13 // CHECK-SAME: 'int'
14 // CHECK-NEXT: CompoundStmt
15 
16 // CHECK: CXXTryStmt
17 // CHECK-NEXT: CompoundStmt
18 // CHECK-NEXT: CXXCatchStmt
19 // CHECK-NEXT: VarDecl
20 // CHECK-SAME: varname
21 // CHECK-SAME: 'int'
22 // CHECK-NEXT: CompoundStmt
23 
24 // CHECK: CXXTryStmt
25 // CHECK-NEXT: CompoundStmt
26 // CHECK-NEXT: CXXCatchStmt
27 // CHECK-NEXT: VarDecl
28 // CHECK-SAME: varname1
29 // CHECK-SAME: 'int'
30 // CHECK-NEXT: CompoundStmt
31 // CHECK-NEXT: CXXCatchStmt
32 // CHECK-NEXT: VarDecl
33 // CHECK-SAME: varname2
34 // CHECK-SAME: 'long'
35 // CHECK-NEXT: CompoundStmt
36 
expr()37 void expr() {
38   f();
39 }
40