summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/block-byref-cxx-objc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGenCXX/block-byref-cxx-objc.cpp')
-rw-r--r--test/CodeGenCXX/block-byref-cxx-objc.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGenCXX/block-byref-cxx-objc.cpp b/test/CodeGenCXX/block-byref-cxx-objc.cpp
index 135e0c7..30f1f07 100644
--- a/test/CodeGenCXX/block-byref-cxx-objc.cpp
+++ b/test/CodeGenCXX/block-byref-cxx-objc.cpp
@@ -23,3 +23,13 @@ int main()
// CHECK: call void @_Block_object_assign
// CHECK: define internal void @__destroy_helper_block_
// CHECK: call void @_Block_object_dispose
+
+// rdar://problem/11135650
+namespace test1 {
+ struct A { int x; A(); ~A(); };
+
+ void test() {
+ return;
+ __block A a;
+ }
+}
OpenPOWER on IntegriCloud