From: Josh Conner Date: Mon, 12 Sep 2005 15:50:08 +0000 (+0000) Subject: pr middle-end/23237 X-Git-Tag: misc/cutover-cvs2svn~668 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c4bea017edcaa8e18a00af00128a48800db92801;p=thirdparty%2Fgcc.git pr middle-end/23237 pr middle-end/23237 * gcc.c-torture/compile/pr23237.c: New test. From-SVN: r104177 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index a4b62de40994..434e539b0050 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2005-09-12 Josh Conner + + PR middle-end/23237 + * gcc.c-torture/compile/pr23237.c: New test. + 2005-09-11 Richard Henderson * 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 000000000000..bbb3483a5572 --- /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; + } +}