From: Douglas Gregor Date: Sat, 11 Jun 2011 04:42:58 +0000 (+0000) Subject: Extra test for related result type inference X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0833f1f55b216e7467cb713106f1b6aa26100923;p=clang Extra test for related result type inference git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@132874 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/SemaObjCXX/related-result-type-inference.mm b/test/SemaObjCXX/related-result-type-inference.mm index accec793ad..c3cab05194 100644 --- a/test/SemaObjCXX/related-result-type-inference.mm +++ b/test/SemaObjCXX/related-result-type-inference.mm @@ -67,4 +67,5 @@ void test_inference() { NSArray *arr = [[NSMutableArray alloc] init]; NSMutableArray *marr = [arr retain]; // expected-warning{{incompatible pointer types initializing 'NSMutableArray *' with an expression of type 'NSArray *'}} marr = [arr retain]; // expected-warning{{incompatible pointer types assigning to 'NSMutableArray *' from 'NSArray *'}} + arr = [marr retain]; }