[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Import / cxx-try-catch / test.cpp
blob079e35b3e7d326f2b16f4ee8fabfd1e36235e7e4
1 // RUN: clang-import-test -dump-ast -import %S/Inputs/F.cpp -expression %s | FileCheck %s
3 // CHECK: CXXTryStmt
4 // CHECK-NEXT: CompoundStmt
5 // CHECK-NEXT: CXXCatchStmt
6 // CHECK-NEXT: <<NULL>>
7 // CHECK-NEXT: CompoundStmt
9 // CHECK: CXXTryStmt
10 // CHECK-NEXT: CompoundStmt
11 // CHECK-NEXT: CXXCatchStmt
12 // CHECK-NEXT: VarDecl
13 // CHECK-SAME: 'int'
14 // CHECK-NEXT: CompoundStmt
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
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
37 void expr() {
38 f();