summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenObjC
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2009-01-12 23:27:26 +0000
committerFariborz Jahanian <fjahanian@apple.com>2009-01-12 23:27:26 +0000
commit30e7864661ffff4ad2c7b542401dbc2172529660 (patch)
tree15a00c03bcad1fdafb6daf94c3e3c688e91d5b0f /clang/test/CodeGenObjC
parentb3730b50c70c4b5cdb4b28fee7c98fee491f3a0d (diff)
downloadbcm5719-llvm-30e7864661ffff4ad2c7b542401dbc2172529660.tar.gz
bcm5719-llvm-30e7864661ffff4ad2c7b542401dbc2172529660.zip
Patch to implement code gen for aggrgate-valued property used
to access a field of its type. llvm-svn: 62123
Diffstat (limited to 'clang/test/CodeGenObjC')
-rw-r--r--clang/test/CodeGenObjC/property-agrr-getter.m17
1 files changed, 17 insertions, 0 deletions
diff --git a/clang/test/CodeGenObjC/property-agrr-getter.m b/clang/test/CodeGenObjC/property-agrr-getter.m
new file mode 100644
index 00000000000..903dcc7e970
--- /dev/null
+++ b/clang/test/CodeGenObjC/property-agrr-getter.m
@@ -0,0 +1,17 @@
+// RUN: clang -emit-llvm -o %t %s
+
+typedef struct {
+ unsigned f0;
+} s0;
+
+@interface A
+- (s0) f0;
+@end
+
+@implementation A
+-(s0) f0{}
+- (unsigned) bar {
+ return self.f0.f0;
+}
+@end
+
OpenPOWER on IntegriCloud