blob: ebba0fd896dc5e925ed761fd75ed2f764f961d11 [file] [log] [blame]
Fariborz Jahanian89bc3142009-05-08 23:02:36 +00001// RUN: clang-cc -fsyntax-only -verify %s
2
3@interface I
Fariborz Jahanian9f8f0262009-05-08 23:45:49 +00004+ new; // expected-note {{method 'new' is used for the forward class}}
Fariborz Jahanian89bc3142009-05-08 23:02:36 +00005@end
6Class isa;
7
8@class NotKnown;
9
10void foo(NotKnown *n) {
11 [isa new];
12 [NotKnown new]; /* expected-warning {{receiver 'NotKnown' is a forward class and corresponding}} */
13}