aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/initpri1_part_d2.c
blob: 1dcb7367726390fe6ed1f99e2c343d4f8989d743 (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 d2() __attribute__((destructor (700)));

CDTOR_LINKAGE
void d2() {
  if (--i != 2)
    __builtin_abort ();
}