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
6Class isa;
7
8@class NotKnown; // expected-note{{forward declaration of class here}}
9
10void foo(NotKnown *n) {
11  [isa new];
12  [NotKnown new];	   /* expected-warning {{receiver 'NotKnown' is a forward class and corresponding}} */
13}
14