[PATCH] D51123: [ASTImporter] Add test for ObjCAutoreleasePoolStmt
Raphael Isemann via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 22 13:11:00 PDT 2018
teemperor created this revision.
Herald added subscribers: cfe-commits, martong.
Herald added a reviewer: a.sidorin.
Repository:
rC Clang
https://reviews.llvm.org/D51123
Files:
test/Import/objc-autoreleasepool/Inputs/F.m
test/Import/objc-autoreleasepool/test.m
Index: test/Import/objc-autoreleasepool/test.m
===================================================================
--- /dev/null
+++ 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();
+}
Index: test/Import/objc-autoreleasepool/Inputs/F.m
===================================================================
--- /dev/null
+++ test/Import/objc-autoreleasepool/Inputs/F.m
@@ -0,0 +1,5 @@
+void f() {
+ @autoreleasepool {
+ return;
+ }
+}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51123.162033.patch
Type: text/x-patch
Size: 668 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180822/1a02e601/attachment.bin>
More information about the cfe-commits
mailing list