2010-01-01 10:34:51 +00:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
2009-06-02 17:58:47 +00:00
|
|
|
|
|
|
|
@interface Foo
|
|
|
|
@end
|
|
|
|
|
|
|
|
void test() {
|
|
|
|
Foo *fooObj;
|
|
|
|
id obj;
|
|
|
|
|
2011-05-02 19:39:53 +00: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')}}
|
|
|
|
[obj whatever:1 :2 :3]; // expected-warning {{instance method '-whatever:::' not found (return type defaults to 'id'))}}
|
2009-06-02 17:58:47 +00:00
|
|
|
}
|