Debian Codegraph @

gcc/testsuite/c-c++-common/initpri1_part_d3.c

raw
1 /* { dg-skip-if part { *-*-* } } */
2 /* Via the magic string "-std=*++" indicate that testing one (the default) C++ standard is sufficient. */
3
4 extern int i;
5 extern int j;
6
7 CDTOR_LINKAGE
8 void d3() __attribute__((destructor (600)));
9
10 CDTOR_LINKAGE
11 void d3() {
12 if (j != 2)
13 __builtin_abort ();
14 if (--i != 1)
15 __builtin_abort ();
16 }