summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr34969.c
blob: 02f7dd1aaac2ce1512f36d9d98fc39fc057c4129 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* PR middle-end/34969 */
/* { dg-do compile } */
/* { dg-options "-O -fipa-cp -ffast-math" } */

double
foo (double x)
{
  return x * x;
}

double
bar (void)
{
  return foo (0);
}