This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] New testcase


Committed.

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

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

Index: testsuite/gcc.dg/lto/20091020-3_0.c
===================================================================
--- testsuite/gcc.dg/lto/20091020-3_0.c	(revision 0)
+++ testsuite/gcc.dg/lto/20091020-3_0.c	(revision 0)
@@ -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 ();
+}
+


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]