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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [objc.dg/] [property/] [dynamic-1.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
/* { dg-do compile } */
2
 
3
#include <objc/objc.h>
4
 
5
@interface MyRootClass
6
{
7
  Class isa;
8
}
9
@end
10
 
11
@implementation MyRootClass
12
@end
13
 
14
@dynamic isa;           /* { dg-error ".@dynamic. not in @implementation context" } */
15
 
16
@interface Test : MyRootClass
17
{
18
  int v1;
19
  int v2;
20
  int v3;
21
  int v4;
22
}
23
@property int v1;
24
@property int v2;
25
@property int v3;
26
@property int v4;
27
@end
28
 
29
@implementation Test
30
@dynamic;            /* { dg-error "expected identifier" } */
31
@dynamic v1, ;       /* { dg-error "expected identifier" } */
32
@dynamic v1, v2, v3;
33
@dynamic v4;
34
@end

powered by: WebSVN 2.1.0

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