blob: 22466f7dc34222a5ec9bedbd2071a692e8b72eca [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s
Steve Naroff983df5b2007-10-16 20:39:36 +00002
Steve Naroff983df5b2007-10-16 20:39:36 +00003@interface Foo
4@end
5
6void test() {
7 Foo *fooObj;
8 id obj;
9
Fariborz Jahanian3d9ce902011-03-26 17:07:06 +000010 [[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')}}
11 [fooObj notdefined]; // expected-warning {{instance method '-notdefined' not found (return type defaults to 'id')}}
Richard Trieu2fe9b7f2011-12-15 00:38:15 +000012 [obj whatever:1 :2 :3]; // expected-warning {{instance method '-whatever:::' not found (return type defaults to 'id')}}
Steve Naroff983df5b2007-10-16 20:39:36 +000013}