llvm-for-llvmta/tools/clang/test/Import/compound-assign-op/test.cpp

46 lines
916 B
C++
Raw Normal View History

2022-04-25 13:02:35 +02:00
// RUN: clang-import-test -dump-ast -import %S/Inputs/F.cpp -expression %s | FileCheck %s
// CHECK: VarDecl
// CHECK-NEXT: Integer
// CHECK-NEXT: CompoundAssignOperator
// CHECK-SAME: '+='
// CHECK: VarDecl
// CHECK-NEXT: Integer
// CHECK-NEXT: CompoundAssignOperator
// CHECK-SAME: '-='
// CHECK: VarDecl
// CHECK-NEXT: Integer
// CHECK-NEXT: CompoundAssignOperator
// CHECK-SAME: '*='
// CHECK: VarDecl
// CHECK-NEXT: Integer
// CHECK-NEXT: CompoundAssignOperator
// CHECK-SAME: '/='
// CHECK: VarDecl
// CHECK-NEXT: Integer
// CHECK-NEXT: CompoundAssignOperator
// CHECK-SAME: '&='
// CHECK: VarDecl
// CHECK-NEXT: Integer
// CHECK-NEXT: CompoundAssignOperator
// CHECK-SAME: '^='
// CHECK: VarDecl
// CHECK-NEXT: Integer
// CHECK-NEXT: CompoundAssignOperator
// CHECK-SAME: '<<='
// CHECK: VarDecl
// CHECK-NEXT: Integer
// CHECK-NEXT: CompoundAssignOperator
// CHECK-SAME: '>>='
void expr() {
f();
}