forked from OSchip/llvm-project
[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:
parent
74135fc79f
commit
95bfd47cfe
|
@ -0,0 +1,5 @@
|
|||
void f() {
|
||||
@autoreleasepool {
|
||||
return;
|
||||
}
|
||||
}
|
|
@ -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();
|
||||
}
|
Loading…
Reference in New Issue