2009-12-16 04:14:24 +08:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
2007-10-17 04:39:36 +08:00
|
|
|
|
|
|
|
@interface Foo
|
|
|
|
@end
|
|
|
|
|
|
|
|
void test() {
|
|
|
|
Foo *fooObj;
|
|
|
|
id obj;
|
|
|
|
|
2011-03-27 01:07:06 +08:00
|
|
|
[[Foo alloc] init]; // expected-warning {{class method '+alloc' not found (return type defaults to 'id')}} expected-warning {{instance method '-init' not found (return type defaults to 'id')}}
|
|
|
|
[fooObj notdefined]; // expected-warning {{instance method '-notdefined' not found (return type defaults to 'id')}}
|
2011-12-15 08:38:15 +08:00
|
|
|
[obj whatever:1 :2 :3]; // expected-warning {{instance method '-whatever:::' not found (return type defaults to 'id')}}
|
2007-10-17 04:39:36 +08:00
|
|
|
}
|