aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr111444.c
blob: e613f2558032338af389708050c1cdd6c7784d24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* { dg-do run } */

int a = 3, d, e;
int *b = &a;
char c;
short f;
const int **g;
static long h(int **i, int **j)
{
  const int *k[46];
  const int **l = &k[5];
  *j = &e;
  g = l;
  for (; d; d = d + 1)
    ;
  **i = 0;
  return f;
}
int main()
{
  int *m = &a;
  h(&m, &m);
  c = *b;
  if (c != 3)
    __builtin_abort ();
}