forked from OSchip/llvm-project
ace5d07e50
@class NSString; @interface Test + (void)test:(NSString *)string; @end void g(NSString *a); void f() { NSString *a = "Foo"; g("Foo"); [Test test:"Foo"]; } will produce t.m:10:17: warning: incompatible pointer types initializing 'char [4]', expected 'NSString *' NSString *a = "Foo"; ^~~~~ @ t.m:11:5: warning: incompatible pointer types passing 'char [4]', expected 'NSString *' g("Foo"); ^~~~~ @ t.m:12:14: warning: incompatible pointer types sending 'char [4]', expected 'NSString *' [Test test:"Foo"]; ^~~~~ @ 3 diagnostics generated. llvm-svn: 86665 |
||
---|---|---|
.. | ||
fixit-at.c | ||
fixit-c90.c | ||
fixit-errors-1.c | ||
fixit-errors.c | ||
fixit-objc.m | ||
fixit-pmem.cpp | ||
fixit.c | ||
fixit.cpp |