r340463 - [ASTImporter] Add test for ObjCAutoreleasePoolStmt
Raphael Isemann via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 22 15:45:04 PDT 2018
Author: teemperor
Date: Wed Aug 22 15:45:04 2018
New Revision: 340463
URL: http://llvm.org/viewvc/llvm-project?rev=340463&view=rev
Log:
[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
Added:
cfe/trunk/test/Import/objc-autoreleasepool/
cfe/trunk/test/Import/objc-autoreleasepool/Inputs/
cfe/trunk/test/Import/objc-autoreleasepool/Inputs/F.m
cfe/trunk/test/Import/objc-autoreleasepool/test.m
Added: cfe/trunk/test/Import/objc-autoreleasepool/Inputs/F.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Import/objc-autoreleasepool/Inputs/F.m?rev=340463&view=auto
==============================================================================
--- cfe/trunk/test/Import/objc-autoreleasepool/Inputs/F.m (added)
+++ cfe/trunk/test/Import/objc-autoreleasepool/Inputs/F.m Wed Aug 22 15:45:04 2018
@@ -0,0 +1,5 @@
+void f() {
+ @autoreleasepool {
+ return;
+ }
+}
Added: cfe/trunk/test/Import/objc-autoreleasepool/test.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Import/objc-autoreleasepool/test.m?rev=340463&view=auto
==============================================================================
--- cfe/trunk/test/Import/objc-autoreleasepool/test.m (added)
+++ cfe/trunk/test/Import/objc-autoreleasepool/test.m Wed Aug 22 15:45:04 2018
@@ -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();
+}
More information about the cfe-commits
mailing list