aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/round.c
blob: 04c413d0939f0b5199b20016cab117807907b0d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-additional-options "-std=gnu89" } */

foo (a)
     double a;
{
  printf ("%d\n", (int) a);
}

main ()
{
  foo (1.6);
  foo (1.4);
  foo (-1.4);
  foo (-1.6);
}