mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-26 00:31:16 +08:00
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:
parent
3f16185feb
commit
3a222639ea
@ -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>
|
2005-01-24 Janis Johnson <janis187@us.ibm.com>
|
||||||
|
|
||||||
* lib/target-supports.exp (current_target_name): New.
|
* lib/target-supports.exp (current_target_name): New.
|
||||||
|
32
gcc/testsuite/objc.dg/comp-types-7.m
Normal file
32
gcc/testsuite/objc.dg/comp-types-7.m
Normal 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
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user