summaryrefslogtreecommitdiffstats
path: root/test/CodeGenObjC/property-getter-dot-syntax.m
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
commit391d8953701ad712bb31ebe33d12ca1765758897 (patch)
tree11612da983fd3fd81459a83175fc77bc2971e731 /test/CodeGenObjC/property-getter-dot-syntax.m
parenteffa8d1c97b00a3f53e972b0e61d9aade5ea1c57 (diff)
Patch to allow a getter call using property dot-syntax notation.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@60816 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenObjC/property-getter-dot-syntax.m')
-rw-r--r--test/CodeGenObjC/property-getter-dot-syntax.m11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGenObjC/property-getter-dot-syntax.m b/test/CodeGenObjC/property-getter-dot-syntax.m
new file mode 100644
index 0000000000..962862b536
--- /dev/null
+++ b/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;
+}