gcc/testsuite/gcc.dg/torture/pr111444.c
raw| 1 | /* { dg-do run } */ |
| 2 | |
| 3 | int a = 3, d, e; |
| 4 | int *b = &a; |
| 5 | char c; |
| 6 | short f; |
| 7 | const int **g; |
| 8 | static long h(int **i, int **j) |
| 9 | { |
| 10 | const int *k[46]; |
| 11 | const int **l = &k[5]; |
| 12 | *j = &e; |
| 13 | g = l; |
| 14 | for (; d; d = d + 1) |
| 15 | ; |
| 16 | **i = 0; |
| 17 | return f; |
| 18 | } |
| 19 | int main() |
| 20 | { |
| 21 | int *m = &a; |
| 22 | h(&m, &m); |
| 23 | c = *b; |
| 24 | if (c != 3) |
| 25 | __builtin_abort (); |
| 26 | } |