re PR objc/18408 (ICE compiling code that involves casting classes)

2005-01-25  Alexander Malmberg  <alexander@malmberg.org>

        PR objc/18408
        * objc.dg/comp-types-7.m: New test.

From-SVN: r94200
This commit is contained in:
Alexander Malmberg 2005-01-25 03:16:48 +00:00 committed by Andrew Pinski
parent 3f16185feb
commit 3a222639ea
2 changed files with 37 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2005-01-25 Alexander Malmberg <alexander@malmberg.org>
PR objc/18408
* objc.dg/comp-types-7.m: New test.
2005-01-24 Janis Johnson <janis187@us.ibm.com>
* lib/target-supports.exp (current_target_name): New.

View File

@ -0,0 +1,32 @@
/* { dg-do compile } */
/* We just to ICE because we removed the cast to List_linked*
in -[ListIndex_linked next]. */
@interface List
{
@public
int firstLink;
}
@end
@interface ListIndex_linked
{
@public
List *collection;
int link;
}
@end
@interface List_linked: List
@end
@implementation List
@end
@implementation ListIndex_linked
- next
{
link = ((List_linked*)collection)->firstLink;
}
@end