summaryrefslogtreecommitdiffstats
path: root/test/SemaObjCXX/protocol-lookup.mm
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaObjCXX/protocol-lookup.mm')
-rw-r--r--test/SemaObjCXX/protocol-lookup.mm5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/SemaObjCXX/protocol-lookup.mm b/test/SemaObjCXX/protocol-lookup.mm
index ed3fbe0..bd8444c 100644
--- a/test/SemaObjCXX/protocol-lookup.mm
+++ b/test/SemaObjCXX/protocol-lookup.mm
@@ -49,3 +49,8 @@
@end
+void rdar8575095(id a) {
+ [id<NSObject>(a) retain];
+ id<NSObject> x(id<NSObject>(0));
+ id<NSObject> x2(id<NSObject>(y)); // expected-warning{{parentheses were disambiguated as a function declarator}}
+}
OpenPOWER on IntegriCloud