gcc/testsuite/gcc.dg/torture/pr95761.c
raw| 1 | /* { dg-do compile } */ |
| 2 | |
| 3 | typedef int a[10]; |
| 4 | typedef struct { |
| 5 | a b; |
| 6 | a c; |
| 7 | a d; |
| 8 | a e; |
| 9 | } f; |
| 10 | f g; |
| 11 | int *j; |
| 12 | void k() { |
| 13 | for (;;) { |
| 14 | a l; |
| 15 | j[0] = g.b[0]; |
| 16 | int *h = g.d; |
| 17 | int i = 0; |
| 18 | for (; i < 10; i++) |
| 19 | h[i] = l[0] - g.e[0]; |
| 20 | h = g.e; |
| 21 | i = 0; |
| 22 | for (; i < 10; i++) |
| 23 | h[i] = l[1] + g.e[i]; |
| 24 | } |
| 25 | } |