blob: 78bf65027284b176b343603e2d1b0d252f7a42d2 [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
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}