11556Srgrimes/* Don't assemble, as this section syntax may not be valid on all platforms
21556Srgrimes   (e.g., Darwin).  */
31556Srgrimes/* { dg-do compile } */
41556Srgrimes
51556Srgrimes/* { dg-require-effective-target named_sections } */
61556Srgrimes
71556Srgrimesstatic __attribute__ ((__section__ (".init.data"))) char *message;
81556Srgrimesstatic __attribute__ ((__section__ (".init.data"))) int (*actions[])(void) = {};
91556Srgrimesvoid unpack_to_rootfs(void)
101556Srgrimes{
111556Srgrimes  while (!message)
121556Srgrimes  {
131556Srgrimes    if(!actions[0])
141556Srgrimes      return;
151556Srgrimes  }
161556Srgrimes}
171556Srgrimes