2018-08-22 00:36:49 +08:00
|
|
|
// RUN: clang-import-test -dump-ast -import %S/Inputs/F.cpp -expression %s | FileCheck %s
|
|
|
|
|
|
|
|
// CHECK: CXXForRangeStmt
|
|
|
|
|
2018-09-29 02:44:09 +08:00
|
|
|
// CHECK-NEXT: DeclStmt
|
|
|
|
// CHECK-NEXT: VarDecl
|
|
|
|
// CHECK-SAME: c 'Container'
|
|
|
|
// CHECK-NEXT: CXXConstructExpr
|
|
|
|
|
2018-08-22 00:36:49 +08:00
|
|
|
// CHECK-NEXT: DeclStmt
|
|
|
|
// CHECK-NEXT: VarDecl
|
|
|
|
// CHECK-NEXT: DeclRefExpr
|
|
|
|
// CHECK-SAME: 'c'
|
|
|
|
// CHECK-SAME: Container
|
|
|
|
|
|
|
|
// CHECK-NEXT: DeclStmt
|
|
|
|
// CHECK-NEXT: VarDecl
|
|
|
|
// CHECK-NEXT: CXXMemberCallExpr
|
|
|
|
// CHECK-SAME: 'int *'
|
|
|
|
// CHECK-NEXT: MemberExpr
|
|
|
|
// CHECK-SAME: .begin
|
|
|
|
// CHECK-NEXT: DeclRefExpr
|
|
|
|
// CHECK-SAME: '__range1'
|
|
|
|
// CHECK-SAME: Container
|
|
|
|
|
|
|
|
// CHECK-NEXT: DeclStmt
|
|
|
|
// CHECK-NEXT: VarDecl
|
|
|
|
// CHECK-NEXT: CXXMemberCallExpr
|
|
|
|
// CHECK-SAME: 'int *'
|
|
|
|
// CHECK-NEXT: MemberExpr
|
|
|
|
// CHECK-SAME: .end
|
|
|
|
// CHECK-NEXT: DeclRefExpr
|
|
|
|
// CHECK-SAME: '__range1'
|
|
|
|
// CHECK-SAME: Container
|
|
|
|
|
|
|
|
// CHECK-NEXT: BinaryOperator
|
|
|
|
// CHECK-SAME: '!='
|
|
|
|
// CHECK-NEXT: ImplicitCastExpr
|
|
|
|
// CHECK-NEXT: DeclRefExpr
|
|
|
|
// CHECK-SAME: '__begin1'
|
|
|
|
// CHECK-NEXT: ImplicitCastExpr
|
|
|
|
// CHECK-NEXT: DeclRefExpr
|
|
|
|
// CHECK-SAME: '__end1'
|
|
|
|
|
|
|
|
// CHECK-NEXT: UnaryOperator
|
|
|
|
// CHECK-SAME: '++'
|
|
|
|
// CHECK-NEXT: DeclRefExpr
|
|
|
|
// CHECK-SAME: '__begin1'
|
|
|
|
|
|
|
|
// CHECK-NEXT: DeclStmt
|
|
|
|
// CHECK-NEXT: VarDecl
|
|
|
|
// CHECK-SAME: varname
|
|
|
|
|
|
|
|
// CHECK: ReturnStmt
|
|
|
|
|
|
|
|
void expr() {
|
|
|
|
f();
|
|
|
|
}
|