aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/pr94598.c
blob: a18a796aa0a60c428d0e32f07483259829cacd9b (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 compile } */
/* { dg-options "-O1" } */

struct a {
  int b;
  short c;
};
int d;
void e() {
  struct a f[1];
  f[d] = f[d];
}

struct S {
  int a[30];
  int c;
};

int get_int (void);

int foo(struct S p)
{
  p.c = get_int ();
  p.a[get_int()] = get_int()+1;
  return p.c;
}