repo.or.cz
/
clang.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Allow resolving headers from a PCH even after headers+PCH were moved to another path.
[clang.git]
/
test
/
SemaObjC
/
forward-class-receiver.m
blob
55b29c15c5c31df5b558340cd5de1537e0cd978f
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;
9
10
void foo(NotKnown *n) {
11
[isa new];
12
[NotKnown new]; /* expected-warning {{receiver 'NotKnown' is a forward class and corresponding}} */
13
}