gcc/testsuite/gcc.dg/torture/pr71908.c
raw| 1 | /* { dg-do compile } */ |
| 2 | |
| 3 | struct S3 |
| 4 | { |
| 5 | int f3; |
| 6 | int f5; |
| 7 | char f6; |
| 8 | int f7; |
| 9 | } b; |
| 10 | int a; |
| 11 | static struct S3 *c = &b; |
| 12 | int *d; |
| 13 | int main() |
| 14 | { |
| 15 | int i; |
| 16 | for (;;) { |
| 17 | a = 0; |
| 18 | int **e = &d; |
| 19 | i = 0; |
| 20 | for (; i < 2; i++) |
| 21 | d = &(*c).f5; |
| 22 | *e = d; |
| 23 | **e = 3; |
| 24 | } |
| 25 | return 0; |
| 26 | } |