[ASTImporter] Add test for ObjCAutoreleasePoolStmt

Reviewers: a.sidorin, a_sidorin

Reviewed By: a_sidorin

Subscribers: martong, cfe-commits

Differential Revision: https://reviews.llvm.org/D51123

llvm-svn: 340463
This commit is contained in:
Raphael Isemann 2018-08-22 22:45:04 +00:00
parent 74135fc79f
commit 95bfd47cfe
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,5 @@
void f() {
@autoreleasepool {
return;
}
}

View File

@ -0,0 +1,9 @@
// RUN: clang-import-test -dump-ast -x objective-c++ -import %S/Inputs/F.m -expression %s | FileCheck %s
// CHECK: ObjCAutoreleasePoolStmt
// CHECK-NEXT: CompoundStmt
// CHECK-NEXT: ReturnStmt
void expr() {
f();
}