summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/lto/20090116_0.c
blob: 5bb3a919a599056a253a0aed7ace60fc55a4f77f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-lto-do link } */
/* { dg-lto-options {{-O1 -flto -flto-partition=1to1 -fPIC}} } */
/* { dg-extra-ld-options {-r -nostdlib -O0} } */

int foo(void) {
 int ret, i;
 for (i = 0; i < 1; i++)
   ret = 0;
 for (i = 0; i < 1; i++)
   ret = 1;
 return ret;
}