2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / torture / pr41680.C
blob7faab0d5fbc7c9129cbc94b25ff54fcb0bcd8367
1 // PR target/41680
2 // { dg-do compile }
4 extern void baz (float);
6 inline bool
7 bar (float x)
9   union { float f; int i; } u;
10   u.f = x;
11   return (u.i & 1);
14 void
15 foo (float *x)
17   for (int i = 0; i < 10; i++)
18     {
19       float f = x[i];
20       if (!bar (f))
21         baz (f);
22     }