teemperor created this revision. Herald added a subscriber: martong. Herald added a reviewer: a.sidorin.
Repository: rC Clang https://reviews.llvm.org/D50810 Files: test/Import/do-stmt/Inputs/F.cpp test/Import/do-stmt/test.cpp Index: test/Import/do-stmt/test.cpp =================================================================== --- /dev/null +++ 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(); +} Index: test/Import/do-stmt/Inputs/F.cpp =================================================================== --- /dev/null +++ test/Import/do-stmt/Inputs/F.cpp @@ -0,0 +1,7 @@ +void f() { + do + ; + while (true); + do { + } while (false); +}
Index: test/Import/do-stmt/test.cpp =================================================================== --- /dev/null +++ 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(); +} Index: test/Import/do-stmt/Inputs/F.cpp =================================================================== --- /dev/null +++ test/Import/do-stmt/Inputs/F.cpp @@ -0,0 +1,7 @@ +void f() { + do + ; + while (true); + do { + } while (false); +}
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits