20091020-3_0.c: New testcase.

2009-10-20  Richard Guenther  <rguenther@suse.de>

	* gcc.dg/lto/20091020-3_0.c: New testcase.

From-SVN: r153019
This commit is contained in:
Richard Guenther 2009-10-20 15:26:49 +00:00 committed by Richard Biener
parent 70041f8a33
commit a30f893635
2 changed files with 24 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2009-10-20 Richard Guenther <rguenther@suse.de>
* gcc.dg/lto/20091020-3_0.c: New testcase.
2009-10-20 Richard Guenther <rguenther@suse.de>
PR lto/41761

View File

@ -0,0 +1,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 ();
}