diff options
Diffstat (limited to 'test/Import/do-stmt/test.cpp')
-rw-r--r-- | test/Import/do-stmt/test.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/Import/do-stmt/test.cpp b/test/Import/do-stmt/test.cpp new file mode 100644 index 0000000000000..8b1057dae65b2 --- /dev/null +++ b/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(); +} |