pr middle-end/23237

pr middle-end/23237
    * gcc.c-torture/compile/pr23237.c: New test.

From-SVN: r104177
This commit is contained in:
Josh Conner 2005-09-12 15:50:08 +00:00 committed by Josh Conner
parent d840283a80
commit c4bea017ed
2 changed files with 17 additions and 0 deletions

View 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.

View File

@ -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;
}
}