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(); +}