summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/graphite/id-24.c
blob: d4660694ca3046d456ee92fae7d20b3d5d16c9b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* gcc.dg/tree-ssa/loadpre23.c used to ICE with Graphite.  */

struct {
  int a;
  int large[100];
} x;

int foo(int argc)
{
  int b;
  int c;
  int i;
  int d, e;

  for (i = 0; i < argc; i++)
    {
      e = x.a;
      x.a = 9;
    }
  return d + e;
}