summaryrefslogtreecommitdiffstats
path: root/test/CodeGenObjC/objc2-weak-ivar.m
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGenObjC/objc2-weak-ivar.m')
-rw-r--r--test/CodeGenObjC/objc2-weak-ivar.m10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGenObjC/objc2-weak-ivar.m b/test/CodeGenObjC/objc2-weak-ivar.m
new file mode 100644
index 0000000..592c1f0
--- /dev/null
+++ b/test/CodeGenObjC/objc2-weak-ivar.m
@@ -0,0 +1,10 @@
+// RUN: clang-cc -triple x86_64-apple-darwin9 -fobjc-gc -emit-llvm -o %t %s
+@class NSObject;
+
+@interface Foo {
+@public
+ __weak NSObject *nsobject;
+}
+@end
+
+@implementation Foo @end
OpenPOWER on IntegriCloud