gcc/testsuite/gcc.target/i386/pr38151-1.c
raw| 1 | /* { dg-do run } */ |
| 2 | /* { dg-options "-O2" } */ |
| 3 | |
| 4 | void abort (void); |
| 5 | |
| 6 | struct S2848 |
| 7 | { |
| 8 | unsigned int a; |
| 9 | _Complex int b; |
| 10 | }; |
| 11 | |
| 12 | struct S2848 s2848; |
| 13 | |
| 14 | void __attribute__((noinline)) |
| 15 | check2848 (struct S2848 arg0) |
| 16 | { |
| 17 | if (arg0.b != s2848.b) |
| 18 | abort (); |
| 19 | } |
| 20 | |
| 21 | int main() |
| 22 | { |
| 23 | s2848.a = 4027477739U; |
| 24 | s2848.b = (723419448 + -218144346 * __extension__ 1i); |
| 25 | |
| 26 | check2848 (s2848); |
| 27 | |
| 28 | return 0; |
| 29 | } |