pr middle-end/23237
authorjconner <jconner@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 12 Sep 2005 15:50:08 +0000 (15:50 +0000)
committerjconner <jconner@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 12 Sep 2005 15:50:08 +0000 (15:50 +0000)
    * gcc.c-torture/compile/pr23237.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@104177 138bc75d-0d04-0410-961f-82ee72b054a4

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

index a4b62de..434e539 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;
+  }
+}