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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [obj-c++.dg/] [property/] [at-property-15.mm] - Rev 703

Compare with Previous | Blame | View Log

/* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, November 2010.  */
/* { dg-do compile } */
/* { dg-options "-Wno-property-assign-default" } */

#include <objc/objc.h>

/* Test that -Wno-property-assign-default turns off all "object
   property xxx has no assign, return or copy attribute" warnings.  */

@interface MyRootClass
{
  Class isa;
}

@property id property_a;            /* Would normally generate a warning.  */
@property (readonly) id property_b;
@property id *property_c;          
@property Class property_d;        
@property MyRootClass *property_e; /* Would normally generate a warning.  */
@end

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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