mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-18 20:31:00 +08:00
pr middle-end/23237
pr middle-end/23237 * gcc.c-torture/compile/pr23237.c: New test. From-SVN: r104177
This commit is contained in:
parent
d840283a80
commit
c4bea017ed
@ -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.
|
||||
|
12
gcc/testsuite/gcc.c-torture/compile/pr23237.c
Normal file
12
gcc/testsuite/gcc.c-torture/compile/pr23237.c
Normal 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;
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user