summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/ipa/pr48195.c
blob: 2e38452d59880ab578ca131a762a75bf7deb05b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* { dg-do link } */
/* { dg-options "-O2 -flto --param partial-inlining-entry-probability=101" } */
/* { dg-require-effective-target lto } */

extern void abort(void);

int i;

void __attribute__ ((constructor))
c2 ()
{
  if (i)
    abort ();
}

void __attribute__ ((destructor))
d1 ()
{
  if (i)
    abort ();
}

void main ()
{
}