gcc/testsuite/c-c++-common/initpri1_part_c2.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 c2() __attribute__((constructor (700))); |
| 8 | |
| 9 | CDTOR_LINKAGE |
| 10 | void c2() { |
| 11 | if (i++ != 2) |
| 12 | __builtin_abort (); |
| 13 | } |