Daniel Dunbar | d7d5f02 | 2009-03-24 02:24:46 +0000 | [diff] [blame] | 1 | // RUN: clang-cc -verify %s |
Fariborz Jahanian | daa0311 | 2008-05-06 18:14:26 +0000 | [diff] [blame] | 2 | |
| 3 | @interface I |
| 4 | { |
| 5 | id d1; |
| 6 | } |
| 7 | @property (readwrite, copy) id d1; |
| 8 | @property (readwrite, copy) id d2; |
| 9 | @end |
| 10 | |
| 11 | @interface NOW : I |
Fariborz Jahanian | 567c8df | 2008-12-06 01:12:43 +0000 | [diff] [blame] | 12 | @property (readonly) id d1; // expected-warning {{attribute 'readonly' of property 'd1' restricts attribute 'readwrite' of property inherited from 'I'}} expected-warning {{property 'd1' 'copy' attribute does not match the property inherited from 'I'}} |
Steve Naroff | 184671b | 2009-03-03 15:49:23 +0000 | [diff] [blame] | 13 | @property (readwrite, copy) I* d2; |
Fariborz Jahanian | daa0311 | 2008-05-06 18:14:26 +0000 | [diff] [blame] | 14 | @end |