Record edge true/false value for gcov
[official-gcc.git] / gcc / testsuite / gcc.dg / vxworks / initpri1.c
blob1d26b0ecb8e6f8c6f21c95d9727ab9e8bd01335a
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
4 priority. */
6 /* The selector below excludes VxWorks AE because AE does not support
7 RTP mode. */
8 /* { dg-do compile { target { *-*-vxworks* && { ! *-*-vxworksae* } } } } */
9 /* { dg-skip-if "vxworks7 SR06x0 now uses .init_array" { *-*-vxworks7r* } } */
10 /* { dg-options "-mrtp" } */
11 /* { dg-final { scan-assembler "ctors\.00000" } } */
12 /* { dg-final { scan-assembler "dtors\.00000" } } */
14 volatile int i;
16 void c1 () __attribute__((constructor));
17 void c1 () { ++i; }
19 void d1 () __attribute__((destructor));
20 void d1 () { --i; }