]> granicus.if.org Git - clang/commitdiff
Extra test for related result type inference
authorDouglas Gregor <dgregor@apple.com>
Sat, 11 Jun 2011 04:42:58 +0000 (04:42 +0000)
committerDouglas Gregor <dgregor@apple.com>
Sat, 11 Jun 2011 04:42:58 +0000 (04:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@132874 91177308-0d34-0410-b5e6-96231b3b80d8

test/SemaObjCXX/related-result-type-inference.mm

index accec793ad3804b08c8deecec2bffb652e77f513..c3cab05194fcdb26bb8009e3014eee48f8248ae0 100644 (file)
@@ -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];
 }