Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/lto/20090303_0.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* { dg-lto-do run } */ /* { dg-require-effective-target fpic } */ /* { dg-lto-options {{-flto -flto-partition=1to1 -fPIC}} } */ /* { dg-lto-options {{-flto -flto-partition=1to1}} { target sparc*-*-* } } */ /* { dg-suppress-ld-options {-fPIC} } */ void foobar(int *, int* __x) ; int test_ints[30]; int j; void foobar (int *x, int *y) { *x = *y = 0; } void Test() { int int_set_; foobar (&int_set_, &test_ints[j]); } int main() { Test(); return 0; }