diff options
Diffstat (limited to 'test/Import/while-stmt/test.cpp')
-rw-r--r-- | test/Import/while-stmt/test.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/Import/while-stmt/test.cpp b/test/Import/while-stmt/test.cpp new file mode 100644 index 0000000000000..a0309d4312407 --- /dev/null +++ b/test/Import/while-stmt/test.cpp @@ -0,0 +1,21 @@ +// RUN: clang-import-test -dump-ast -import %S/Inputs/F.cpp -expression %s | FileCheck %s + +// CHECK: WhileStmt +// CHECK-NEXT: CXXBoolLiteralExpr +// CHECK-NEXT: NullStmt + +// CHECK: WhileStmt +// CHECK-NEXT: CXXBoolLiteralExpr +// CHECK-NEXT: CompoundStmt + +// CHECK: WhileStmt +// CHECK-NEXT: DeclStmt +// CHECK-NEXT: VarDecl +// CHECK-NEXT: CXXBoolLiteralExpr +// CHECK-NEXT: ImplicitCastExpr +// CHECK-NEXT: DeclRefExpr +// CHECK-NEXT: NullStmt + +void expr() { + f(); +} |