gcc/testsuite/gcc.dg/tree-ssa/pr116406.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-Os -finstrument-functions-once" } */ |
| 3 | /* { dg-additional-options "-mfpmath=387" { target { x86_64-*-* i?86-*-* } } } */ |
| 4 | |
| 5 | typedef union { |
| 6 | float f32; |
| 7 | double f64; |
| 8 | long i64; |
| 9 | } U; |
| 10 | |
| 11 | _Bool |
| 12 | foo (int c, U u) |
| 13 | { |
| 14 | switch (c) |
| 15 | { |
| 16 | case 1: |
| 17 | return u.f32 - u.f64; |
| 18 | case 0: |
| 19 | return u.i64; |
| 20 | } |
| 21 | } |