[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Import / compound-assign-op / test.cpp
blob415358ddbf9969d4c759122d4cae775c12469528
1 // RUN: clang-import-test -dump-ast -import %S/Inputs/F.cpp -expression %s | FileCheck %s
3 // CHECK: VarDecl
4 // CHECK-NEXT: Integer
5 // CHECK-NEXT: CompoundAssignOperator
6 // CHECK-SAME: '+='
8 // CHECK: VarDecl
9 // CHECK-NEXT: Integer
10 // CHECK-NEXT: CompoundAssignOperator
11 // CHECK-SAME: '-='
13 // CHECK: VarDecl
14 // CHECK-NEXT: Integer
15 // CHECK-NEXT: CompoundAssignOperator
16 // CHECK-SAME: '*='
18 // CHECK: VarDecl
19 // CHECK-NEXT: Integer
20 // CHECK-NEXT: CompoundAssignOperator
21 // CHECK-SAME: '/='
23 // CHECK: VarDecl
24 // CHECK-NEXT: Integer
25 // CHECK-NEXT: CompoundAssignOperator
26 // CHECK-SAME: '&='
28 // CHECK: VarDecl
29 // CHECK-NEXT: Integer
30 // CHECK-NEXT: CompoundAssignOperator
31 // CHECK-SAME: '^='
33 // CHECK: VarDecl
34 // CHECK-NEXT: Integer
35 // CHECK-NEXT: CompoundAssignOperator
36 // CHECK-SAME: '<<='
38 // CHECK: VarDecl
39 // CHECK-NEXT: Integer
40 // CHECK-NEXT: CompoundAssignOperator
41 // CHECK-SAME: '>>='
43 void expr() {
44 f();