diff options
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.dg/lto/20090116_0.c')
-rw-r--r-- | gcc-4.9/gcc/testsuite/gcc.dg/lto/20090116_0.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.dg/lto/20090116_0.c b/gcc-4.9/gcc/testsuite/gcc.dg/lto/20090116_0.c new file mode 100644 index 000000000..4a8659699 --- /dev/null +++ b/gcc-4.9/gcc/testsuite/gcc.dg/lto/20090116_0.c @@ -0,0 +1,13 @@ +/* { dg-lto-do link } */ +/* { dg-require-effective-target fpic } */ +/* { 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; +} |