Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.dg/20010405-1.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
1 __inline__ double bar(double *x) | |
2 { | |
3 static double a; | |
4 a = *x >= 0 ? *x : -*x; | |
5 return a; | |
6 } | |
7 | |
8 int main(void) | |
9 { | |
10 extern double bar(); | |
11 double a; | |
12 static double b; | |
13 int r; | |
14 for (r = 1; r < 3; r++) { | |
15 a = 1.0; | |
16 b = bar(&a); | |
17 } | |
18 return 0; | |
19 } |