aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr66413.c
blob: 0ca57d7202a27d14f31f4090bd8b45978766504f (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/* { dg-do compile } */
/* { dg-additional-options "-g" } */

int a, b, c, d, i, j, q, *e, *h, *k, *r, **p = &e;
const int *f, **n = &f;
static int g;

void
fn1 (int p1)
{
  c = p1;
}

static int *
fn2 (int *p1, const int *p2)
{
  if (g)
    n = &p2;
  *n = p2;
  int o[245];
  fn1 (o != p2);
  return p1;
}

static int *
fn3 ()
{
  int s[54], *t = &s[0], u = 0, v = 1;
  h = &v;
  q = 1;
  for (; q; q++)
    {
      int *w[] = { &u };
      for (; v;)
	return *p;
    }
  *r = *t + b >= 0;
  return *p;
}

static int
fn4 (int *p1)
{
  int *l[2], **m[7];
  for (; i < 1; i++)
    for (; j < 1; j++)
      m[i * 70] = &l[0];
  k = fn3 ();
  fn2 (0, p1);
  if ((m[0] == 0) & a)
    for (;;)
      ;
  return 0;
}

int
main ()
{
  fn4 (&d);
  return 0;
}