llvm-for-llvmta/tools/clang/test/Import/do-stmt/test.cpp

16 lines
311 B
C++
Raw Permalink Normal View History

2022-04-25 13:02:35 +02:00
// 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();
}