summaryrefslogtreecommitdiff
path: root/clang/test/CodeGenObjC/blocks-ivar-debug.m
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGenObjC/blocks-ivar-debug.m')
-rw-r--r--clang/test/CodeGenObjC/blocks-ivar-debug.m20
1 files changed, 20 insertions, 0 deletions
diff --git a/clang/test/CodeGenObjC/blocks-ivar-debug.m b/clang/test/CodeGenObjC/blocks-ivar-debug.m
new file mode 100644
index 0000000..d0cf1f1
--- /dev/null
+++ b/clang/test/CodeGenObjC/blocks-ivar-debug.m
@@ -0,0 +1,20 @@
+// RUN: %clang_cc1 -g %s -fblocks -S -o %t
+// Radar 7959934
+
+@interface NSObject {
+ struct objc_object *isa;
+}
+@end
+@interface Foo : NSObject {
+ int _prop;
+}
+@end
+
+@implementation Foo
+- (int)doSomething {
+ int (^blk)(void) = ^{ return _prop; };
+ return blk();
+}
+
+@end
+