forked from OSchip/llvm-project
[ASTImporter] Test for importing condition variable from a ForStmt
Reviewers: a.sidorin, a_sidorin Reviewed By: a_sidorin Subscribers: cfe-commits, martong Differential Revision: https://reviews.llvm.org/D50928 llvm-svn: 340180
This commit is contained in:
parent
5b06c228af
commit
6ef4fafef8
|
@ -3,6 +3,8 @@ void f() {
|
|||
;
|
||||
for (int i = 0;;)
|
||||
continue;
|
||||
for (; bool j = false;)
|
||||
continue;
|
||||
for (int i = 0; i != 0; ++i) {
|
||||
i++;
|
||||
}
|
||||
|
|
|
@ -16,6 +16,18 @@
|
|||
// CHECK-NEXT: <<NULL>>
|
||||
// CHECK-NEXT: ContinueStmt
|
||||
|
||||
// CHECK: ForStmt
|
||||
// CHECK-NEXT: <<NULL>>
|
||||
// CHECK-NEXT: DeclStmt
|
||||
// CHECK-NEXT: VarDecl
|
||||
// CHECK-NEXT: CXXBoolLiteralExpr
|
||||
// CHECK-NEXT: ImplicitCastExpr
|
||||
// CHECK-NEXT: DeclRefExpr
|
||||
// CHECK-SAME: 'j'
|
||||
// CHECK-SAME: 'bool'
|
||||
// CHECK-NEXT: <<NULL>>
|
||||
// CHECK-NEXT: ContinueStmt
|
||||
|
||||
// CHECK: ForStmt
|
||||
// CHECK-NEXT: DeclStmt
|
||||
// CHECK-NEXT: VarDecl
|
||||
|
|
Loading…
Reference in New Issue