view gcc/testsuite/gcc.c-torture/compile/20020926-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/7160 */
/* Verify that the register-to-stack converter properly handles
   branches without return value containing function calls.  */
   
extern int gi;

extern int foo1(int, int);
extern void foo2(int, int);
extern float foo3(int);

float bar(int i1, int i2)
{
  int i3;
    
  if (i2) {
    i3 = foo1(i1, gi);
    foo2(i1, i3);
  }
  else
    return foo3(i2);
}