diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-10-20 15:26:49 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-10-20 15:26:49 +0000 |
commit | ddd6fa22c2d9b6e2663ecda709bca66a217943e2 (patch) | |
tree | c26d2763ab7f80d798f12137a2beffa54923a477 | |
parent | 525fa2300a669cb07fc1ea24ee845581aa3c5c90 (diff) | |
download | gcc-ddd6fa22c2d9b6e2663ecda709bca66a217943e2.tar.gz |
2009-10-20 Richard Guenther <rguenther@suse.de>
* gcc.dg/lto/20091020-3_0.c: New testcase.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153019 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/lto/20091020-3_0.c | 20 |
2 files changed, 24 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 0e4f1aff52c..b36838b1755 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,9 @@ 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 * gcc.dg/lto/20091020-1_0.c: New testcase. * gcc.dg/lto/20091020-1_1.c: Likewise. diff --git a/gcc/testsuite/gcc.dg/lto/20091020-3_0.c b/gcc/testsuite/gcc.dg/lto/20091020-3_0.c new file mode 100644 index 00000000000..441a7b91a7f --- /dev/null +++ b/gcc/testsuite/gcc.dg/lto/20091020-3_0.c @@ -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 (); +} + |