Fariborz Jahanian | 89bc314 | 2009-05-08 23:02:36 +0000 | [diff] [blame^] | 1 | // RUN: clang-cc -fsyntax-only -verify %s |
2 | |||||
3 | @interface I | ||||
4 | + new; | ||||
5 | @end | ||||
6 | Class isa; | ||||
7 | |||||
8 | @class NotKnown; | ||||
9 | |||||
10 | void foo(NotKnown *n) { | ||||
11 | [isa new]; | ||||
12 | [NotKnown new]; /* expected-warning {{receiver 'NotKnown' is a forward class and corresponding}} */ | ||||
13 | } |