[PATCH] D51123: [ASTImporter] Add test for ObjCAutoreleasePoolStmt

Raphael Isemann via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 22 15:46:00 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rC340463: [ASTImporter] Add test for ObjCAutoreleasePoolStmt (authored by teemperor, committed by ).

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
===================================================================
--- 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();
+}
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;
+  }
+}


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51123.162080.patch
Type: text/x-patch
Size: 732 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180822/7870f0ad/attachment.bin>


More information about the cfe-commits mailing list