1 // RUN: %clang_cc1 -fsyntax-only -verify %s
5 @protocol NSCopying @end
6 @interface NSObject @end
10 o.foo; // expected-error{{property 'foo' not found on object of type 'NSObject *'}}
13 void f2(id<NSCopying> o)
15 o.foo; // expected-error{{property 'foo' not found on object of type 'id<NSCopying>'}}
20 o.foo; // expected-error{{property 'foo' not found on object of type 'id'}}
24 @class SomeOtherClass; // expected-note {{forward declaration of class here}}
27 SomeOtherClass *someOtherObject;
31 void foo(MyClass *myObject) {
32 myObject.someOtherObject.someProperty = 0; // expected-error {{property 'someOtherObject' refers to an incomplete Objective-C class 'SomeOtherClass' (with no @interface available)}}