xref: /minix3/external/bsd/llvm/dist/clang/test/SemaObjC/forward-class-receiver.m (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc// RUN: %clang_cc1  -fsyntax-only -verify %s
2*f4a2713aSLionel Sambuc
3*f4a2713aSLionel Sambuc@interface I
4*f4a2713aSLionel Sambuc+ new; // expected-note {{method 'new' is used for the forward class}}
5*f4a2713aSLionel Sambuc@end
6*f4a2713aSLionel SambucClass isa;
7*f4a2713aSLionel Sambuc
8*f4a2713aSLionel Sambuc@class NotKnown; // expected-note{{forward declaration of class here}}
9*f4a2713aSLionel Sambuc
10*f4a2713aSLionel Sambucvoid foo(NotKnown *n) {
11*f4a2713aSLionel Sambuc  [isa new];
12*f4a2713aSLionel Sambuc  [NotKnown new];	   /* expected-warning {{receiver 'NotKnown' is a forward class and corresponding}} */
13*f4a2713aSLionel Sambuc}
14