aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/lto/20091020-3_0.c
blob: 441a7b91a7f3c2ae07ae731734590ed07301258b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* { dg-lto-do assemble } */

typedef __SIZE_TYPE__ size_t;
static int stack_dir;
static void find_stack_direction ()
{
  static char *addr = ((void *)0);
  auto char dummy;
  if (addr == ((void *)0))
    {
      addr = &(dummy);
      find_stack_direction ();
    }
}
void * C_alloca (size_t size)
{
  if (stack_dir == 0)
    find_stack_direction ();
}