brintos

brintos / llvm-project-archived public Read only

0
0
Text · 363 B · 9bcb039 Raw
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