blob: a9365e9cb9327a8b71eb036b4e1a2aba523438e1 [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -verify %s
Fariborz Jahanianc5692492007-12-17 21:03:50 +00002
3@protocol P
4@end
5
6@interface INTF<P>
7- (void)IMeth;
Fariborz Jahanianc5692492007-12-17 21:03:50 +00008@end
9
10@implementation INTF
Steve Naroff0de21fd2009-02-22 19:35:57 +000011- (void)IMeth { [(id<P>)self Meth]; } // expected-warning {{method '-Meth' not found (return type defaults to 'id')}}
Fariborz Jahanianc5692492007-12-17 21:03:50 +000012@end