| /* APPLE LOCAL file radar 4805321,4947014 */ |
| /* Test that setter/getter helpers are generated for copy property. */ |
| /* { dg-options "-fobjc-new-property -mmacosx-version-min=10.5" } */ |
| /* { dg-do compile { target *-*-darwin* } } */ |
| @protocol NSCopying; |
| |
| @interface NSWindow |
| { |
| NSWindow* IVAR; |
| } |
| @property(copy) NSWindow <NSCopying>* title; |
| @end |
| |
| @implementation NSWindow |
| @dynamic title; |
| @end |
| |
| @interface NSWindow (CAT) |
| @property(copy) NSWindow <NSCopying>* title; |
| @end |
| |
| @implementation NSWindow (CAT) |
| @synthesize title=IVAR; |
| @end |
| /* { dg-final { scan-assembler "objc_getProperty" } } */ |
| /* { dg-final { scan-assembler "objc_setProperty" } } */ |