aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Conner <jconner@apple.com>2005-09-12 15:50:08 +0000
committerJosh Conner <jconner@gcc.gnu.org>2005-09-12 15:50:08 +0000
commitc4bea017edcaa8e18a00af00128a48800db92801 (patch)
tree3ecd43e9d652a14017771598f55a7aaeba687116
parentd840283a80662bd1e457631d2dad9757f3b98ff9 (diff)
downloadgcc-c4bea017edcaa8e18a00af00128a48800db92801.zip
gcc-c4bea017edcaa8e18a00af00128a48800db92801.tar.gz
gcc-c4bea017edcaa8e18a00af00128a48800db92801.tar.bz2
pr middle-end/23237
pr middle-end/23237 * gcc.c-torture/compile/pr23237.c: New test. From-SVN: r104177
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/pr23237.c12
2 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index a4b62de..434e539 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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
index 0000000..bbb3483
--- /dev/null
+++ b/gcc/testsuite/gcc.c-torture/compile/pr23237.c
@@ -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;
+ }
+}