* gcc.dg/torture/stackalign/builtin-apply-2.c: Fix skip-if syntax.
[official-gcc.git] / gcc / testsuite / gcc.dg / vxworks / initpri2.c
blob7f483efadb2bc148bb1c65f68166bf3b4dacb29f
1 /* On VxWorks, in kernel mode, there is no support for .ctors/.dtors.
2 Instead, initialization is handled by munch. */
4 /* { dg-do compile { target vxworks_kernel } } */
5 /* { dg-final { scan-assembler-not "\.ctors" } } */
6 /* { dg-final { scan-assembler-not "\.dtors" } } */
8 volatile int i;
10 void c1 () __attribute__((constructor));
11 void c1 () { ++i; }
13 void d1 () __attribute__((destructor));
14 void d1 () { --i; }