2013-10-21 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / ipa / pr48195.c
blob2e38452d59880ab578ca131a762a75bf7deb05b5
1 /* { dg-do link } */
2 /* { dg-options "-O2 -flto --param partial-inlining-entry-probability=101" } */
3 /* { dg-require-effective-target lto } */
5 extern void abort(void);
7 int i;
9 void __attribute__ ((constructor))
10 c2 ()
12 if (i)
13 abort ();
16 void __attribute__ ((destructor))
17 d1 ()
19 if (i)
20 abort ();
23 void main ()