gcc/gcc/testsuite/gcc.dg/pr105461.c

17 lines
249 B
C

/* { dg-do compile } */
/* { dg-options "-O2 -fassociative-math -fsignaling-nans -fvar-tracking -w" } */
int
bar (float *x, int y)
{
*x = y;
return *x;
}
__attribute__ ((optimize ("O2"))) void
foo (float *x, int y)
{
int a = bar (x, y);
}