blob: 4c1befb97f62af013405cc6662eced493be2d78e [file] [log] [blame]
Patrick Beardb2f68202012-04-06 18:12:22 +00001// RUN: %clang_cc1 -verify -Wno-objc-root-class %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
Fariborz Jahanian419245e2013-06-18 15:31:36 +000011- (void)IMeth { [(id<P>)self Meth]; } // expected-warning {{instance method '-Meth' not found (return type defaults to 'id'); did you mean '-IMeth'?}}
Fariborz Jahanianc5692492007-12-17 21:03:50 +000012@end