Fariborz Jahanian | c569249 | 2007-12-17 21:03:50 +0000 | [diff] [blame] | 1 | // RUN: clang -verify %s |
2 | |||||
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 Naroff | 0de21fd | 2009-02-22 19:35:57 +0000 | [diff] [blame^] | 15 | - (void)IMeth {INTF<P> *pi; [pi Meth]; } // expected-warning {{method '-Meth' not found (return type defaults to 'id')}} |
Fariborz Jahanian | c569249 | 2007-12-17 21:03:50 +0000 | [diff] [blame] | 16 | @end |