Debian Codegraph @

clang/test/SemaObjC/property-ownership-attr.m

raw
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2
3 @protocol P
4 @property(readonly) id z;
5 @end
6
7 @interface Foo
8 @property (readonly) id x;
9 @end
10
11 @interface MutableFoo : Foo
12 @property (copy) id x;
13 @end
14
15 @interface Foo (Cat) <P>
16 @property (copy) id z; // expected-warning {{'copy' attribute on property 'z' does not match the property inherited from 'P'}}
17 @end
18