summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr33007.c
blob: 26b22fdd3e19e0a0be7b274ba4cb037d41e97348 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* { dg-do compile } */
/* { dg-options "-O -ffast-math -ftrapping-math" } */
/* { dg-warning "-fassociative-math disabled" "" { target *-*-* } 1 } */

long
foo (int i)
{
  float x;
  x = i;
  return __builtin_lroundf (x);
}