aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/initpri1_part_c2.c
blob: 926608dc0d917538734c37e8d53446162dd3de47 (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 c2() __attribute__((constructor (700)));

CDTOR_LINKAGE
void c2() {
  if (i++ != 2)
    __builtin_abort ();
}