gcc/testsuite/gcc.target/s390/vector/pr92950.c
raw| 1 | /* { dg-do run } */ |
| 2 | /* { dg-options "-O3 -mzarch -march=z13 --save-temps" } */ |
| 3 | |
| 4 | struct a { |
| 5 | int b; |
| 6 | char c; |
| 7 | }; |
| 8 | struct a d = {1, 16}; |
| 9 | struct a *e = &d; |
| 10 | |
| 11 | int f = 0; |
| 12 | |
| 13 | int main() { |
| 14 | struct a g = {0, 0 }; |
| 15 | f = 0; |
| 16 | |
| 17 | for (; f <= 1; f++) { |
| 18 | g = d; |
| 19 | *e = g; |
| 20 | } |
| 21 | |
| 22 | if (d.c != 16) |
| 23 | __builtin_abort(); |
| 24 | } |