blob: 9bcb03961dc0ab185b36303633892c08de55ff01 [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s
Fariborz Jahanian89bc3142009-05-08 23:02:36 +00002
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
Douglas Gregorb3029962011-11-14 22:10:01 +00008@class NotKnown; // expected-note{{forward declaration of class here}}
Fariborz Jahanian89bc3142009-05-08 23:02:36 +00009
10void foo(NotKnown *n) {
11 [isa new];
12 [NotKnown new]; /* expected-warning {{receiver 'NotKnown' is a forward class and corresponding}} */
13}