summaryrefslogtreecommitdiffstats
path: root/test/CodeGenObjC/synthesize_ivar-cont-class.m
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGenObjC/synthesize_ivar-cont-class.m')
-rw-r--r--test/CodeGenObjC/synthesize_ivar-cont-class.m18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/CodeGenObjC/synthesize_ivar-cont-class.m b/test/CodeGenObjC/synthesize_ivar-cont-class.m
new file mode 100644
index 0000000..b1a7d0e
--- /dev/null
+++ b/test/CodeGenObjC/synthesize_ivar-cont-class.m
@@ -0,0 +1,18 @@
+// RUN: clang-cc -triple x86_64-apple-darwin10 -emit-llvm -o %t %s &&
+// RUN: grep '@"OBJC_IVAR_$_XCOrganizerDeviceNodeInfo.viewController"' %t
+
+@interface XCOrganizerNodeInfo
+@property (readonly, retain) id viewController;
+@end
+
+@interface XCOrganizerDeviceNodeInfo : XCOrganizerNodeInfo
+@end
+
+@interface XCOrganizerDeviceNodeInfo()
+@property (retain) id viewController;
+@end
+
+@implementation XCOrganizerDeviceNodeInfo
+@synthesize viewController;
+@end
+
OpenPOWER on IntegriCloud