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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [objc.dg/] [comp-types-7.m] - Diff between revs 149 and 154

Only display areas with differences | Details | Blame | View Log

Rev 149 Rev 154
/* { dg-do compile } */
/* { dg-do compile } */
/* We used to ICE because we removed the cast to List_linked*
/* We used to ICE because we removed the cast to List_linked*
   in -[ListIndex_linked next]. */
   in -[ListIndex_linked next]. */
 
 
@interface List
@interface List
{
{
@public
@public
  int firstLink;
  int firstLink;
}
}
@end
@end
 
 
@interface ListIndex_linked
@interface ListIndex_linked
{
{
@public
@public
  List *collection;
  List *collection;
  int link;
  int link;
}
}
@end
@end
 
 
@interface List_linked: List
@interface List_linked: List
@end
@end
 
 
@implementation List
@implementation List
@end
@end
 
 
@implementation ListIndex_linked
@implementation ListIndex_linked
- next
- next
{
{
   link = ((List_linked*)collection)->firstLink;
   link = ((List_linked*)collection)->firstLink;
}
}
@end
@end
 
 
 
 

powered by: WebSVN 2.1.0

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