aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/pr61090.c
blob: fff289572ac5af24e0a454b1e2a6bed3ba2f5d3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* { dg-do compile } */
/* { dg-options "-O" } */

struct i {
   int c;
};

static int
p(struct i a)
{
  return 0;
}

void
h(void)
{
  struct i z[] = {{ 0 }};
  int e[] = {};
  int x;
  e[0] = p(z[x]) + z[x].c;
}