gcc/testsuite/gcc.c-torture/execute/pr97073.c
raw| 1 | /* PR middle-end/97073 */ |
| 2 | /* { dg-additional-options "-mno-stv" { target i?86-*-* x86_64-*-* } } */ |
| 3 | |
| 4 | typedef unsigned long long L; |
| 5 | union U { L i; struct T { unsigned k; L l; } j; } u; |
| 6 | |
| 7 | __attribute__((noinline,noclone)) void |
| 8 | foo (L x) |
| 9 | { |
| 10 | u.j.l = u.i & x; |
| 11 | } |
| 12 | |
| 13 | int |
| 14 | main () |
| 15 | { |
| 16 | u.i = 5; |
| 17 | foo (-1ULL); |
| 18 | if (u.j.l != 5) |
| 19 | __builtin_abort (); |
| 20 | return 0; |
| 21 | } |