1 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -o %t %s
3 // Superclass declares property. Subclass redeclares the same property.
4 // Do not @synthesize-by-default in the subclass. P1
5 // Superclass declares a property. Subclass declares a different property with the same name
6 // (such as different type or attributes). Do not @synthesize-by-default in the subclass. P2
7 // Superclass conforms to a protocol that declares a property. Subclass redeclares the
8 // same property. Do not @synthesize-by-default in the subclass. P3
9 // Superclass conforms to a protocol that declares a property. Subclass conforms to the
10 // same protocol or a derived protocol. Do not @synthesize-by-default in the subclass. P4
18 @protocol PROTO1 <PROTO>
22 @interface Super <PROTO>
24 @property (copy) id P2;
27 @interface Sub : Super <PROTO1>
29 @property (nonatomic, retain) id P2; // expected-warning {{property 'P2' 'copy' attribute does not match the property inherited from 'Super'}} \
30 // expected-warning {{property 'P2' 'atomic' attribute does not match the property inherited from 'Super'}}