view gcc/testsuite/gcc.c-torture/compile/20020418-1.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* PR c/6358
   This testcase ICEd on IA-32 in foo, because current_function_return_rtx
   was assigned a hard register only after expand_null_return was called,
   thus return pseudo was clobbered twice and the hard register not at
   all.  */

void baz (void);
                       
double foo (void)
{
  baz ();
  return;
}

double bar (void)
{
  baz ();
}