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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [objc.dg/] [comp-types-7.m] - Blame information for rev 309

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 309 jeremybenn
/* { dg-do compile } */
2
/* We used to ICE because we removed the cast to List_linked*
3
   in -[ListIndex_linked next]. */
4
 
5
@interface List
6
{
7
@public
8
  int firstLink;
9
}
10
@end
11
 
12
@interface ListIndex_linked
13
{
14
@public
15
  List *collection;
16
  int link;
17
}
18
@end
19
 
20
@interface List_linked: List
21
@end
22
 
23
@implementation List
24
@end
25
 
26
@implementation ListIndex_linked
27
- next
28
{
29
   link = ((List_linked*)collection)->firstLink;
30
}
31
@end
32
 

powered by: WebSVN 2.1.0

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