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