[cfe-commits] r132868 - in /cfe/trunk: docs/ include/clang/AST/ include/clang/Basic/ include/clang/Driver/ include/clang/Sema/ lib/AST/ lib/Analysis/ lib/Basic/ lib/CodeGen/ lib/Driver/ lib/Frontend/ lib/Parse/ lib/Sema/ lib/Serialization/ test/Driver/ test/PCH/ test/SemaObjC/ test/SemaObjCXX/
Jordy Rose
jediknil at belkadan.com
Fri Jun 10 18:33:39 PDT 2011
Very cool! But...
On Jun 10, 2011, at 18:09, Douglas Gregor wrote:
> + 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 'NSArray *' from 'NSMutableArray *'}}
Isn't that last message backwards?
Also, would this be a good test to add?
arr = [marr retain]; // no-warning
Jordy
More information about the cfe-commits
mailing list