view gcc/testsuite/g++.dg/lto/20090303_0.C @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 84e7813d76e9
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;
}