* gcc.dg/20000503-1.c: New test.

From-SVN: r33656
This commit is contained in:
Robert Lipe 2000-05-04 03:02:24 +00:00 committed by Robert Lipe
parent 2a6fa433d0
commit 22a8784041
2 changed files with 21 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2000-05-03 Robert Lipe <robertlipe@usa.net>
* gcc.dg/20000503-1.c: New test.
2000-05-02 Jakub Jelinek <jakub@redhat.com>
* gcc.c-torture/compile/20000502-1.c: New test.

View File

@ -0,0 +1,17 @@
/* { dg-do compile { target i?86-*-linux* i?86-*-sco3.2v5* i?86-*-sysv* } } */
/* { dg-options "-O2 -gdwarf -g2" } */
/* Distilled from GCC's stmt.c. Caused abort in dwarf-1 code. */
static void
expand_nl_goto_receiver ()
{
{
static struct elims {int from, to;} elim_regs[] = {{ 16, 7}, { 16, 6}, { 20, 7},{ 20, 6}};
int i;
for (i = 0; i < sizeof elim_regs / sizeof elim_regs[0]; i++)
if (elim_regs[i].from == 16 && elim_regs[i].to == 6)
break;
}
}