Mercurial > hg > CbC > CbC_llvm
annotate clang/test/SemaObjC/forward-class-receiver.m @ 180:680fa57a2f20
fix compile errors.
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 30 May 2020 17:44:06 +0900 |
parents | 1d019706d866 |
children |
rev | line source |
---|---|
150 | 1 // RUN: %clang_cc1 -fsyntax-only -verify %s |
2 | |
3 @interface I | |
4 + new; // expected-note {{method 'new' is used for the forward class}} | |
5 @end | |
6 Class isa; | |
7 | |
8 @class NotKnown; // expected-note{{forward declaration of class here}} | |
9 | |
10 void foo(NotKnown *n) { | |
11 [isa new]; | |
12 [NotKnown new]; /* expected-warning {{receiver 'NotKnown' is a forward class and corresponding}} */ | |
13 } |