summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr41619.c
blob: 9c164e3a60faaaf86bfe162d70feafbb25ea42fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do compile } */
/* { dg-options "-O2 -fno-ira-share-save-slots" } */

struct A {};

int foo();

struct A bar(double x)
{
  double y;
  if (foo())
    y = 1 / x;
  return bar(y);
}