aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.4.3/gcc/testsuite/gcc.c-torture/compile/20020807-1.c
blob: c1cc81504e82affc292b9ccc25a4a38292ab58b2 (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
int x;

static int
__attribute__ ((noinline))
foo (void)
{
  return 0;
}

static void
__attribute__ ((noinline))
bar (void)
{
}

static inline void
baz (void)
{
  char arr[x];

lab:
  if (foo () == -1)
    {
      bar ();
      goto lab;
    }
}

void
test (void)
{
  baz ();
}