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-23.m] - Rev 704

Compare with Previous | Blame | View Log

/* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, November 2010.  */
/* { dg-do compile } */
 
/* Test that properties of type arrays or bitfields are rejected.  */
 
#include <stdlib.h>
#include <objc/objc.h>
#include <objc/runtime.h>
 
@interface MyRootClass
{
  Class isa;
}
@property int a[8]; /* { dg-error "property can not be an array" } */
@property int b:8;  /* { dg-error "property can not be a bit-field" } */
@property int c[];  /* { dg-error "property can not be an array" } */
@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.