gcc/testsuite/c-c++-common/initpri1_part_d1.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 | |
| 6 | CDTOR_LINKAGE |
| 7 | void d1() __attribute__((destructor (500))); |
| 8 | |
| 9 | CDTOR_LINKAGE |
| 10 | void d1() { |
| 11 | if (--i != 0) |
| 12 | __builtin_abort (); |
| 13 | } |