blob: 792469b719c685ae8a121f9355e2656ab945ddda [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
Fariborz Jahanian14040142013-05-15 15:27:35 +00003@interface Foo // expected-note {{receiver is instance of class declared here}}
Steve Naroff983df5b2007-10-16 20:39:36 +00004@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}