summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr61220.c
blob: d45d1c3c9f138135a9c007e02597a936b8782736 (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
/* { dg-do compile } */
/* { dg-options "-O2 -g" } */

int a, c, d, e, f, g, h, i, j, k;

struct S0
{
  int f0;
  int f1;
  int f2;
};

struct S1
{
  int f0;
  int f1;
  struct S0 f2;
} b;

void
fn1 (struct S1 p)
{
  for (; k; k++)
    h = j ? a : a - 1;
  d &= i;
}

int
main ()
{
  int l[5] = { 0 };
  fn1 (b);
  for (c = 0; c < 3; c++)
    for (g = 0; g < 3; g++)
      l[c * 2] = e = l[c];
  if (f)
    fn1 (b);
  return 0;
}