1 /* On VxWorks, in RTP mode, constructors and destructors go in named
2 sections. The section names must include the initialization
3 priority, even for constructors and destructors with the default
6 /* The selector below excludes VxWorks AE because AE does not support
8 /* { dg-do compile { target { *-*-vxworks* && { ! *-*-vxworksae* } } } } */
9 /* { dg-options "-mrtp" } */
10 /* { dg-final { scan-assembler "ctors\.00000" } } */
11 /* { dg-final { scan-assembler "dtors\.00000" } } */
15 void c1 () __attribute__((constructor
));
18 void d1 () __attribute__((destructor
));