summaryrefslogtreecommitdiffstats
path: root/test/CodeGenObjC/property-getter-dot-syntax.m
diff options
context:
space:
mode:
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 0000000..d98e9ba
--- /dev/null
+++ b/test/CodeGenObjC/property-getter-dot-syntax.m
@@ -0,0 +1,11 @@
+// RUN: clang-cc -fnext-runtime --emit-llvm -o %t %s
+
+@protocol NSObject
+- (void *)description;
+@end
+
+int main()
+{
+ id<NSObject> eggs;
+ void *eggsText= eggs.description;
+}
OpenPOWER on IntegriCloud