Mercurial > hg > CbC > CbC_llvm
annotate clang/test/SemaObjC/protocol-id-test-2.m @ 207:2e18cbf3894f
LLVM12
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 08 Jun 2021 06:07:14 +0900 |
parents | 1d019706d866 |
children |
rev | line source |
---|---|
150 | 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 |