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