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; }