view gcc/testsuite/gcc.dg/20010405-1.c @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 04ced10e8804
children
line wrap: on
line source

__inline__ double bar(double *x)
{
  static double a;
  a = *x >= 0 ? *x : -*x;
  return a;
}

int main(void)
{
  extern double bar();
  double a;
  static double b;
  int r;
  for (r = 1; r < 3; r++) {
    a = 1.0;
    b = bar(&a);
  }
  return 0;
}