Fariborz Jahanian | 0fd8904 | 2009-08-11 22:02:25 +0000 | [diff] [blame^] | 1 | // RUN: clang-cc -fobjc-gc -fsyntax-only -verify %s |
| 2 | |
| 3 | @protocol NSCopying @end |
| 4 | |
| 5 | @interface NSObject <NSCopying> |
| 6 | @end |
| 7 | |
| 8 | @interface NSDictionary : NSObject |
| 9 | @end |
| 10 | |
| 11 | @interface INTF |
| 12 | @property NSDictionary* undoAction; // expected-warning {{no 'assign', 'retain', or 'copy' attribute is specified - 'assign' is assumed}} // expected-warning {{default assign attribute on property 'undoAction' which implements NSCopying protocol is not appropriate with}} |
| 13 | @end |
| 14 | |