1 /* On VxWorks, in kernel mode, there is no support for .ctors/.dtors.
2    Instead, initialization is handled by munch.  */
3 
4 /* { dg-do compile { target vxworks_kernel } } */
5 /* { dg-final { scan-assembler-not "\.ctors" } } */
6 /* { dg-final { scan-assembler-not "\.dtors" } } */
7 
8 volatile int i;
9 
10 void c1 () __attribute__((constructor));
c1()11 void c1 () { ++i; }
12 
13 void d1 () __attribute__((destructor));
d1()14 void d1 () { --i; }
15 
16