blob: 6b2b682a135d4e5552e8633db5292e19a31b5e2f [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@interface FF
4- (void) Meth;
5@end
6
7@protocol P
8@end
9
10@interface INTF<P>
11- (void)IMeth;
12@end
13
14@implementation INTF
Steve Naroff0de21fd2009-02-22 19:35:57 +000015- (void)IMeth {INTF<P> *pi; [pi Meth]; } // expected-warning {{method '-Meth' not found (return type defaults to 'id')}}
Fariborz Jahanianc5692492007-12-17 21:03:50 +000016@end