aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/20010405-1.c
blob: b4d57a5d8144b1ccfb0d94519cdca82aeca952fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
__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;
}