]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/SemaObjC/property-ownership-attr.m
Vendor import of clang release_34 branch r197841 (effectively, 3.4 RC3):
[FreeBSD/FreeBSD.git] / test / SemaObjC / property-ownership-attr.m
1 // RUN: %clang_cc1 -fsyntax-only -verify %s 
2 // rdar://15014468
3
4 @protocol P
5   @property(readonly) id z;
6 @end
7
8 @interface Foo
9   @property (readonly) id x;
10 @end
11
12 @interface MutableFoo : Foo
13   @property (copy) id x;
14 @end
15
16 @interface Foo (Cat) <P>
17 @property (copy) id  z; // expected-warning {{'copy' attribute on property 'z' does not match the property inherited from 'P'}}
18 @end
19