1*67e74705SXin Li// RUN: %clang_cc1 -fsyntax-only -verify %s 2*67e74705SXin Li 3*67e74705SXin Li@interface Foo // expected-note {{receiver is instance of class declared here}} 4*67e74705SXin Li@end 5*67e74705SXin Li 6*67e74705SXin Livoid test() { 7*67e74705SXin Li Foo *fooObj; 8*67e74705SXin Li id obj; 9*67e74705SXin Li 10*67e74705SXin Li [[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*67e74705SXin Li [fooObj notdefined]; // expected-warning {{instance method '-notdefined' not found (return type defaults to 'id')}} 12*67e74705SXin Li [obj whatever:1 :2 :3]; // expected-warning {{instance method '-whatever:::' not found (return type defaults to 'id')}} 13*67e74705SXin Li} 14