1// RUN: %clang_cc1 -verify -Wno-objc-root-class %s
2
3@protocol P
4@end
5
6@interface INTF<P>
7- (void)IMeth;
8@end
9
10@implementation INTF
11- (void)IMeth { [(id<P>)self Meth]; }  // expected-warning {{instance method '-Meth' not found (return type defaults to 'id'); did you mean '-IMeth'?}}
12@end
13