aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr69117.c
blob: fbf82c1535687f4599c80709e97f0adf14bbb219 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* { dg-do run } */
/* { dg-additional-options "-fstrict-aliasing" } */

int a, c, *d = &c, **e = &d, *g = &a;
static int ***b, **f = &d;

int
main ()
{
  **f = 0;
  int ****h = 0;
  if (c) 
    {
      *h = &e; 
      ***b = 0;
    }
  *e = g;

  if (d != &a)
    __builtin_abort ();

  return 0;
}