blob: 37171af2e8893b8fc9be675bb9d13fa808ffb859 [file] [log] [blame]
Fariborz Jahanian0399c1c2009-12-14 17:36:25 +00001// RUN: clang -cc1 -fsyntax-only -verify %s
Steve Naroff55f52da2007-10-16 20:39:36 +00002
Steve Naroff55f52da2007-10-16 20:39:36 +00003@interface Foo
4@end
5
6void test() {
7 Foo *fooObj;
8 id obj;
9
10 [[Foo alloc] init]; // expected-warning {{method '+alloc' not found (return type defaults to 'id')}} expected-warning {{method '-init' not found (return type defaults to 'id')}}
11 [fooObj notdefined]; // expected-warning {{method '-notdefined' not found (return type defaults to 'id')}}
12 [obj whatever:1 :2 :3]; // expected-warning {{method '-whatever:::' not found (return type defaults to 'id'))}}
13}