diff options
author | pinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-01-25 03:16:48 +0000 |
---|---|---|
committer | pinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-01-25 03:16:48 +0000 |
commit | c8484c430d4a20b880eddcaa0ed88a3730ee4b8b (patch) | |
tree | cfa06ce6828a48f43e44fec7ac975faa0c791c59 /gcc | |
parent | d7c168e822a31b25f4f34d63d0fbdb5e96845edd (diff) | |
download | gcc-c8484c430d4a20b880eddcaa0ed88a3730ee4b8b.tar.gz |
2005-01-25 Alexander Malmberg <alexander@malmberg.org>
PR objc/18408
* objc.dg/comp-types-7.m: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94200 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/objc.dg/comp-types-7.m | 32 |
2 files changed, 37 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 5b64d146155..537cd207eeb 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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. diff --git a/gcc/testsuite/objc.dg/comp-types-7.m b/gcc/testsuite/objc.dg/comp-types-7.m new file mode 100644 index 00000000000..c33600ce3c6 --- /dev/null +++ b/gcc/testsuite/objc.dg/comp-types-7.m @@ -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 + |