aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/graphite/pr86865.c
blob: a6b4208d83050b794deec668561b16f005e8941c (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
/* { dg-do run } */
/* { dg-options "-O2 -fgraphite-identity -fstack-reuse=none -fwrapv -fno-tree-ch -fno-tree-dce -fno-tree-dominator-opts -fno-tree-loop-ivcanon" } */

int xy, tb;

void
bt (void)
{
  for (xy = 0; xy >= 0; --xy)
    {
      int yt[8] = { 0 };
      int pz[2] = { 0 };
      int sa[32] = { 0 };
      int us;

      for (us = 0; us < 8; ++us)
	yt[us] = 0;

      (void) yt;
      (void) pz;
      (void) sa;
    }

  tb = 1;
}

int
main (void)
{
  bt ();
  if (xy != -1)
    __builtin_abort ();

  return 0;
}