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-29.m] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 704 jeremybenn
/* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, January 2011.  */
2
/* { dg-do compile } */
3
 
4
#include <objc/objc.h>
5
 
6
@interface MyRootClass
7
{
8
  Class isa;
9
}
10
/* Test missing '=' in setter/getter attributes.  */
11
@property (getter)  int property_a; /* { dg-error "missing .=. .after .getter. attribute." } */
12
@property (setter) int property_b;  /* { dg-error "missing .=. .after .setter. attribute." } */
13
@property (assign, getter) int property_c; /* { dg-error "missing .=. .after .getter. attribute." } */
14
@end

powered by: WebSVN 2.1.0

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