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