[cfe-commits] r132874 - /cfe/trunk/test/SemaObjCXX/related-result-type-inference.mm
Douglas Gregor
dgregor at apple.com
Fri Jun 10 21:42:59 PDT 2011
Author: dgregor
Date: Fri Jun 10 23:42:58 2011
New Revision: 132874
URL: http://llvm.org/viewvc/llvm-project?rev=132874&view=rev
Log:
Extra test for related result type inference
Modified:
cfe/trunk/test/SemaObjCXX/related-result-type-inference.mm
Modified: cfe/trunk/test/SemaObjCXX/related-result-type-inference.mm
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjCXX/related-result-type-inference.mm?rev=132874&r1=132873&r2=132874&view=diff
==============================================================================
--- cfe/trunk/test/SemaObjCXX/related-result-type-inference.mm (original)
+++ cfe/trunk/test/SemaObjCXX/related-result-type-inference.mm Fri Jun 10 23:42:58 2011
@@ -67,4 +67,5 @@
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];
}
More information about the cfe-commits
mailing list