aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/initpri1_part_d1.c
blob: 817603e275b2d9f172546554a65cce8ee9d60a86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-skip-if part { *-*-* } } */
/* Via the magic string "-std=*++" indicate that testing one (the default) C++ standard is sufficient.  */

extern int i;

CDTOR_LINKAGE
void d1() __attribute__((destructor (500)));

CDTOR_LINKAGE
void d1() {
  if (--i != 0)
    __builtin_abort ();
}