14 lines · plain
1// RUN: %clang_cc1 -fsyntax-only -verify %s2 3@interface I4+ new; // expected-note {{method 'new' is used for the forward class}}5@end6Class 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