Commit 3a222639 by Alexander Malmberg Committed by Andrew Pinski

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
parent 3f16185f
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.
......
/* { 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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment