summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenObjC
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2008-12-10 00:21:50 +0000
committerFariborz Jahanian <fjahanian@apple.com>2008-12-10 00:21:50 +0000
commit7572ac5614e189e4498ffe2b98791544cd0d66ec (patch)
tree5198ad409eb7aae28d2df1e94bff29057df29852 /clang/test/CodeGenObjC
parent288fbd2133d3243e4c29496d0f738540a0b0305e (diff)
downloadbcm5719-llvm-7572ac5614e189e4498ffe2b98791544cd0d66ec.tar.gz
bcm5719-llvm-7572ac5614e189e4498ffe2b98791544cd0d66ec.zip
Patch to allow a getter call using property dot-syntax notation.
llvm-svn: 60816
Diffstat (limited to 'clang/test/CodeGenObjC')
-rw-r--r--clang/test/CodeGenObjC/property-getter-dot-syntax.m11
1 files changed, 11 insertions, 0 deletions
diff --git a/clang/test/CodeGenObjC/property-getter-dot-syntax.m b/clang/test/CodeGenObjC/property-getter-dot-syntax.m
new file mode 100644
index 00000000000..962862b5366
--- /dev/null
+++ b/clang/test/CodeGenObjC/property-getter-dot-syntax.m
@@ -0,0 +1,11 @@
+// RUN: clang -fnext-runtime --emit-llvm -o %t %s
+
+@protocol NSObject
+- (void *)description;
+@end
+
+int main()
+{
+ id<NSObject> eggs;
+ void *eggsText= eggs.description;
+}
OpenPOWER on IntegriCloud