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-1.m] - Blame information for rev 774

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

Line No. Rev Author Line
1 704 jeremybenn
/* { dg-do compile } */
2
 
3
#include <objc/objc.h>
4
 
5
@interface MyRootClass
6
{
7
  Class isa;
8
}
9
@property;                      /* { dg-error "expected" } */
10
@property int;                  /* { dg-error "expected identifier" } */
11
                                /* { dg-warning "declaration does not declare anything" "" { target *-*-* } 10 } */
12
@property int a;
13
@property int b, c;
14
@property () int d;             /* { dg-error "expected identifier" } */
15
@property (readonly) int e;
16
@property (readonly,) int f;    /* { dg-error "expected identifier" } */
17
@property (xxx) int g;          /* { dg-error "unknown property attribute" } */
18
@property (readonly,xxx) int h; /* { dg-error "unknown property attribute" } */
19
@property ( int i;              /* { dg-error "unknown property attribute" } */
20
/* Because the last syntax error opens a '(' and never closes it, we get to the end of input.  */
21
@end                            /* { dg-error "expected ..end. at end of input" } */

powered by: WebSVN 2.1.0

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