summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenObjC/synthesize_ivar.m
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2009-03-31 18:11:23 +0000
committerFariborz Jahanian <fjahanian@apple.com>2009-03-31 18:11:23 +0000
commit63a224ad596ada00468c2961df414ccd3ce31e2a (patch)
treec0e25e1c7516b89c0afa3e6a3e794ad7c134e900 /clang/test/CodeGenObjC/synthesize_ivar.m
parent8eb473c4770567309cd35a57275d0f4f10e365bd (diff)
downloadbcm5719-llvm-63a224ad596ada00468c2961df414ccd3ce31e2a.tar.gz
bcm5719-llvm-63a224ad596ada00468c2961df414ccd3ce31e2a.zip
ir-gen support for nonfragile abi's synthesized ivars.
llvm-svn: 68122
Diffstat (limited to 'clang/test/CodeGenObjC/synthesize_ivar.m')
-rw-r--r--clang/test/CodeGenObjC/synthesize_ivar.m14
1 files changed, 14 insertions, 0 deletions
diff --git a/clang/test/CodeGenObjC/synthesize_ivar.m b/clang/test/CodeGenObjC/synthesize_ivar.m
new file mode 100644
index 00000000000..fcc67f8711a
--- /dev/null
+++ b/clang/test/CodeGenObjC/synthesize_ivar.m
@@ -0,0 +1,14 @@
+// RUN: clang-cc -arch x86_64 -emit-llvm -o %t %s
+
+@interface I
+{
+}
+@property int IP;
+@end
+
+@implementation I
+@synthesize IP;
+- (int) Meth {
+ return IP;
+}
+@end
OpenPOWER on IntegriCloud