mirror of git://gcc.gnu.org/git/gcc.git
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:
parent
70041f8a33
commit
a30f893635
|
@ -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
|
||||
|
|
|
@ -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 ();
|
||||
}
|
||||
|
Loading…
Reference in New Issue