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] - 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
 
4
/* Test that properties of type arrays or bitfields are rejected.  */
5
 
6
#include <stdlib.h>
7
#include <objc/objc.h>
8
#include <objc/runtime.h>
9
 
10
@interface MyRootClass
11
{
12
  Class isa;
13
}
14
@property int a[8]; /* { dg-error "property can not be an array" } */
15
@property int b:8;  /* { dg-error "property can not be a bit-field" } */
16
@property int c[];  /* { dg-error "property can not be an array" } */
17
@end

powered by: WebSVN 2.1.0

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