]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
pr middle-end/23237
authorJosh Conner <jconner@apple.com>
Mon, 12 Sep 2005 15:50:08 +0000 (15:50 +0000)
committerJosh Conner <jconner@gcc.gnu.org>
Mon, 12 Sep 2005 15:50:08 +0000 (15:50 +0000)
    pr middle-end/23237
    * gcc.c-torture/compile/pr23237.c: New test.

From-SVN: r104177

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr23237.c [new file with mode: 0644]

index a4b62de409943fecd1b86143efee35de50214964..434e539b00509b7a06424ce50e22eb66d22b39de 100644 (file)
@@ -1,3 +1,8 @@
+2005-09-12  Josh Conner  <jconner@apple.com>
+
+       PR middle-end/23237
+       * gcc.c-torture/compile/pr23237.c: New test. 
+
 2005-09-11  Richard Henderson  <rth@redhat.com>
 
        * g++.dg/other/error8.C: Update expected diagnostic text.
diff --git a/gcc/testsuite/gcc.c-torture/compile/pr23237.c b/gcc/testsuite/gcc.c-torture/compile/pr23237.c
new file mode 100644 (file)
index 0000000..bbb3483
--- /dev/null
@@ -0,0 +1,12 @@
+/* { dg-require-effective-target named_sections } */
+
+static __attribute__ ((__section__ (".init.data"))) char *message;
+static __attribute__ ((__section__ (".init.data"))) int (*actions[])(void) = {};
+void unpack_to_rootfs(void)
+{
+  while (!message)
+  {
+    if(!actions[0])
+      return;
+  }
+}