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-skip-if "vxworks7 SR06x0 now uses .init_array" { *-*-vxworks7r* } } */
       6  /* { dg-final { scan-assembler-not "\.ctors" } } */
       7  /* { dg-final { scan-assembler-not "\.dtors" } } */
       8  
       9  volatile int i;
      10  
      11  void c1 () __attribute__((constructor));
      12  void c1 () { ++i; }
      13  
      14  void d1 () __attribute__((destructor));
      15  void d1 () { --i; }
      16