gcc/testsuite/g++.dg/torture/pr41680.C
raw| 1 | // PR target/41680 |
| 2 | // { dg-do compile } |
| 3 | |
| 4 | extern void baz (float); |
| 5 | |
| 6 | inline bool |
| 7 | bar (float x) |
| 8 | { |
| 9 | union { float f; int i; } u; |
| 10 | u.f = x; |
| 11 | return (u.i & 1); |
| 12 | } |
| 13 | |
| 14 | void |
| 15 | foo (float *x) |
| 16 | { |
| 17 | for (int i = 0; i < 10; i++) |
| 18 | { |
| 19 | float f = x[i]; |
| 20 | if (!bar (f)) |
| 21 | baz (f); |
| 22 | } |
| 23 | } |