1 // RUN: %clang_cc1 -verify %s
9 @interface MutableNSData : NSData @end
11 @interface Base : NSData <P1> // expected-note {{receiver is instance of class declared here}}
12 @property(readonly) id ref;
13 @property(readonly) Base *p_base;
14 @property(readonly) NSData *nsdata;
15 @property(readonly) NSData * m_nsdata;
18 @interface Data : Base <P1, P2>
19 @property(readonly) NSData *ref;
20 @property(readonly) Data *p_base;
21 @property(readonly) MutableNSData * m_nsdata;
24 @interface MutedData: Data
25 @property(readonly) id p_base;
28 @interface ConstData : Data <P1, P2, P3>
29 @property(readonly) ConstData *p_base;
32 void foo(Base *b, id x) {
33 [ b setRef: x ]; // expected-warning {{method '-setRef:' not found}}