2009-12-16 04:14:24 +08:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
2009-05-09 07:02:36 +08:00
|
|
|
|
|
|
|
@interface I
|
2009-05-09 07:45:49 +08:00
|
|
|
+ new; // expected-note {{method 'new' is used for the forward class}}
|
2009-05-09 07:02:36 +08:00
|
|
|
@end
|
|
|
|
Class isa;
|
|
|
|
|
2011-11-15 06:10:01 +08:00
|
|
|
@class NotKnown; // expected-note{{forward declaration of class here}}
|
2009-05-09 07:02:36 +08:00
|
|
|
|
|
|
|
void foo(NotKnown *n) {
|
|
|
|
[isa new];
|
|
|
|
[NotKnown new]; /* expected-warning {{receiver 'NotKnown' is a forward class and corresponding}} */
|
|
|
|
}
|