summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/graphite/pr37828.c
blob: df0ef7c0aa743ad9d8608783bcbe65951a4b2afe (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
/* { dg-options "-O2" } */

typedef struct foo
{
  struct foo **Node;
} foo;

static int sort_and_split (foo **Root, foo **Finite, long first)
{
  foo *cd;
  long i;
  for (i = 0; i < first; i++)
    cd->Node[i] = Finite[first+i];

  sort_and_split(Root, Finite, first);
  return (0);
}


void Build_foo(foo **Root, foo **Finite, foo **Infinite)
{
  long low, high;
  while (sort_and_split(Root, Finite, low) == 0);
}