Patrick Beard | b2f6820 | 2012-04-06 18:12:22 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -verify -Wno-objc-root-class %s |
Fariborz Jahanian | c569249 | 2007-12-17 21:03:50 +0000 | [diff] [blame] | 2 | |
| 3 | @interface FF |
| 4 | - (void) Meth; |
| 5 | @end |
| 6 | |
| 7 | @protocol P |
| 8 | @end |
| 9 | |
Fariborz Jahanian | 1404014 | 2013-05-15 15:27:35 +0000 | [diff] [blame] | 10 | @interface INTF<P> // expected-note {{receiver is instance of class declared here}} |
Fariborz Jahanian | c569249 | 2007-12-17 21:03:50 +0000 | [diff] [blame] | 11 | - (void)IMeth; |
| 12 | @end |
| 13 | |
| 14 | @implementation INTF |
Fariborz Jahanian | 419245e | 2013-06-18 15:31:36 +0000 | [diff] [blame] | 15 | - (void)IMeth {INTF<P> *pi; [pi Meth]; } // expected-warning {{instance method '-Meth' not found (return type defaults to 'id'); did you mean '-IMeth'?}} |
Fariborz Jahanian | c569249 | 2007-12-17 21:03:50 +0000 | [diff] [blame] | 16 | @end |