gcc/testsuite/gcc.dg/lto/20091020-3_0.c
raw| 1 | /* { dg-lto-do assemble } */ |
| 2 | |
| 3 | typedef __SIZE_TYPE__ size_t; |
| 4 | static int stack_dir; |
| 5 | static void find_stack_direction () |
| 6 | { |
| 7 | static char *addr = ((void *)0); |
| 8 | auto char dummy; |
| 9 | if (addr == ((void *)0)) |
| 10 | { |
| 11 | addr = &(dummy); |
| 12 | find_stack_direction (); |
| 13 | } |
| 14 | } |
| 15 | void * C_alloca (size_t size) |
| 16 | { |
| 17 | if (stack_dir == 0) |
| 18 | find_stack_direction (); |
| 19 | } |
| 20 |