r340180 - [ASTImporter] Test for importing condition variable from a ForStmt
Raphael Isemann via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 20 08:51:41 PDT 2018
Author: teemperor
Date: Mon Aug 20 08:51:41 2018
New Revision: 340180
URL: http://llvm.org/viewvc/llvm-project?rev=340180&view=rev
Log:
[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
Modified:
cfe/trunk/test/Import/for-stmt/Inputs/F.cpp
cfe/trunk/test/Import/for-stmt/test.cpp
Modified: cfe/trunk/test/Import/for-stmt/Inputs/F.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Import/for-stmt/Inputs/F.cpp?rev=340180&r1=340179&r2=340180&view=diff
==============================================================================
--- cfe/trunk/test/Import/for-stmt/Inputs/F.cpp (original)
+++ cfe/trunk/test/Import/for-stmt/Inputs/F.cpp Mon Aug 20 08:51:41 2018
@@ -3,6 +3,8 @@ void f() {
;
for (int i = 0;;)
continue;
+ for (; bool j = false;)
+ continue;
for (int i = 0; i != 0; ++i) {
i++;
}
Modified: cfe/trunk/test/Import/for-stmt/test.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Import/for-stmt/test.cpp?rev=340180&r1=340179&r2=340180&view=diff
==============================================================================
--- cfe/trunk/test/Import/for-stmt/test.cpp (original)
+++ cfe/trunk/test/Import/for-stmt/test.cpp Mon Aug 20 08:51:41 2018
@@ -17,6 +17,18 @@
// 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
// CHECK-NEXT: IntegerLiteral
More information about the cfe-commits
mailing list