summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/pr23237.c
blob: bbb3483a5572b26b1ac6b821be9a9392268da91c (plain)
1
2
3
4
5
6
7
8
9
10
11
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;
  }
}