* gcc.dg/m68k-slp-ice.c: New test for PR c/7872.
From-SVN: r63763
This commit is contained in:
parent
f9d36a92e4
commit
767440a2db
2 changed files with 19 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
2003-03-03 James E Wilson <wilson@tuliptree.org>
|
||||
|
||||
* gcc.dg/m68k-slp-ice.c: New test for PR c/7872.
|
||||
|
||||
2003-03-03 Mark Mitchell <mark@codesourcery.com>
|
||||
|
||||
PR c++/9878
|
||||
|
|
15
gcc/testsuite/gcc.dg/m68k-slp-ice.c
Normal file
15
gcc/testsuite/gcc.dg/m68k-slp-ice.c
Normal file
|
@ -0,0 +1,15 @@
|
|||
/* From PR 7872, test for optabs segfault when strict low part is present. */
|
||||
/* { dg-do compile { target m68k-*-* } } */
|
||||
/* { dg-options "-O0" } */
|
||||
extern void (**table)(void);
|
||||
|
||||
typedef unsigned short uw16;
|
||||
typedef unsigned int gshort;
|
||||
|
||||
register uw16 *pc asm("%a4");
|
||||
register gshort code asm("%d6");
|
||||
|
||||
void QMExecuteLoop(uw16 *oldPC)
|
||||
{
|
||||
table[code=(*(uw16*)(pc++))]();
|
||||
}
|
Loading…
Add table
Reference in a new issue