OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [objc.dg/] [property/] [at-property-15.m] - Blame information for rev 704

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 704 jeremybenn
/* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, 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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.