summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/graphite/run-id-3.c
blob: e708ba0bdeaa1f5e79a9c8c2728cd9679cd2f5d6 (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
extern void abort (void);

__attribute__ ((noinline)) int
foo (int *zzz, unsigned int kk)
{
  int a, b, d;

  a = b = 0;
  for (d = 0; d < 1000; d++)
    {
      if (kk != 0)
        b = *zzz;
    }

  return b;
}

int
main (void)
{
  if (foo (0, 0) != 0)
    abort();
  return 0;
}