aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/graphite/pr69067.c
blob: 145ac82290715939635b68273b852737943a5f53 (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
/* { dg-do link } */
/* { dg-options " -O1 -floop-nest-optimize" } */
/* { dg-additional-options "-flto" { target lto } } */

int a1, c1, cr, kt;
int aa[2];

int
ce (void)
{
  while (a1 < 1)
    {
      int g8;
      for (g8 = 0; g8 < 3; ++g8)
	if (c1 != 0)
	  cr = aa[a1 * 2] = kt;
      for (c1 = 0; c1 < 2; ++c1)
	aa[c1] = cr;
      ++a1;
    }
  return 0;
}

int
main (void)
{
  return ce ();
}