| 1 |
/* Contributed by Nicola Pero <[email protected]>, November 2010. */ |
| 2 |
/* { dg-do compile } */ |
| 3 |
/* { dg-options "-Wno-property-assign-default" } */ |
| 4 |
|
| 5 |
#include <objc/objc.h> |
| 6 |
|
| 7 |
/* Test that -Wno-property-assign-default turns off all "object |
| 8 |
property xxx has no assign, return or copy attribute" warnings. */ |
| 9 |
|
| 10 |
@interface MyRootClass |
| 11 |
{ |
| 12 |
Class isa; |
| 13 |
} |
| 14 |
|
| 15 |
@property id property_a; /* Would normally generate a warning. */ |
| 16 |
@property (readonly) id property_b; |
| 17 |
@property id *property_c; |
| 18 |
@property Class property_d; |
| 19 |
@property MyRootClass *property_e; /* Would normally generate a warning. */ |
| 20 |
@end |