MAINTAINERS: Change my contact email in MAINTAINERS file.
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / addiflt.c
blob0bdd6d60d0a6538781f6267ef68aed6c2fb5e8df
1 /* { dg-do run } */
3 typedef int int_t;
5 __attribute__ ((noinline)) int_t
6 addiflt (double w, double x, int_t y, int_t z)
8 return w < x ? y + z : y;
11 int
12 main (void)
14 if (addiflt (-1.0, -1.0, 12, 23) != 12)
15 return 1;
16 if (addiflt (-1.0, 3.0, 12, 23) != 35)
17 return 1;
18 if (addiflt (1.0, 3.0, 12, 23) != 35)
19 return 1;
20 if (addiflt (3.0, 3.0, 12, 23) != 12)
21 return 1;
22 if (addiflt (5.0, 3.0, 12, 23) != 12)
23 return 1;
24 if (addiflt (3.0, -1.0, 12, 23) != 12)
25 return 1;
26 if (addiflt (3.0, 1.0, 12, 23) != 12)
27 return 1;
28 if (addiflt (3.0, 5.0, 12, 23) != 35)
29 return 1;
30 return 0;