[PATCH] D50810: [ASTImporter] Add test for DoStmt

Raphael Isemann via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 16 11:21:42 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL339917: [ASTImporter] Add test for DoStmt (authored by teemperor, committed by ).
Herald added a subscriber: llvm-commits.

Changed prior to commit:
  https://reviews.llvm.org/D50810?vs=160918&id=161075#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D50810

Files:
  cfe/trunk/test/Import/do-stmt/Inputs/F.cpp
  cfe/trunk/test/Import/do-stmt/test.cpp


Index: cfe/trunk/test/Import/do-stmt/Inputs/F.cpp
===================================================================
--- cfe/trunk/test/Import/do-stmt/Inputs/F.cpp
+++ cfe/trunk/test/Import/do-stmt/Inputs/F.cpp
@@ -0,0 +1,7 @@
+void f() {
+  do
+    ;
+  while (true);
+  do {
+  } while (false);
+}
Index: cfe/trunk/test/Import/do-stmt/test.cpp
===================================================================
--- cfe/trunk/test/Import/do-stmt/test.cpp
+++ cfe/trunk/test/Import/do-stmt/test.cpp
@@ -0,0 +1,15 @@
+// RUN: clang-import-test -dump-ast -import %S/Inputs/F.cpp -expression %s | FileCheck %s
+
+// CHECK: DoStmt
+// CHECK-NEXT: NullStmt
+// CHECK-NEXT: CXXBoolLiteralExpr
+// CHECK-SAME: true
+
+// CHECK: DoStmt
+// CHECK-NEXT: CompoundStmt
+// CHECK-NEXT: CXXBoolLiteralExpr
+// CHECK-SAME: false
+
+void expr() {
+  f();
+}


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D50810.161075.patch
Type: text/x-patch
Size: 844 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180816/37e37615/attachment.bin>


More information about the cfe-commits mailing list