Index: test/Import/objc-autoreleasepool/Inputs/F.m =================================================================== --- test/Import/objc-autoreleasepool/Inputs/F.m +++ test/Import/objc-autoreleasepool/Inputs/F.m @@ -0,0 +1,5 @@ +void f() { + @autoreleasepool { + return; + } +} Index: test/Import/objc-autoreleasepool/test.m =================================================================== --- test/Import/objc-autoreleasepool/test.m +++ test/Import/objc-autoreleasepool/test.m @@ -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(); +}