In gcc/testsuite/: 2011-03-04 Nicola Pero <nicola.pero@meta-innovation.com>
[official-gcc.git] / gcc / testsuite / objc.dg / property / at-property-15.m
blobef53442460f2ad26954c67c829cc43b2d3929f94
1 /* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, November 2010.  */
2 /* { dg-do compile } */
3 /* { dg-options "-Wno-property-assign-default" } */
5 #include <objc/objc.h>
7 /* Test that -Wno-property-assign-default turns off all "object
8    property xxx has no assign, return or copy attribute" warnings.  */
10 @interface MyRootClass
12   Class isa;
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