Bug 439685 compiler warning in callgrind/main.c
[valgrind.git] / VEX / useful / fspill.c
blob41e7eda97f00ff8686337f08fec3a263079b784f
2 #include <stdio.h>
4 double qq ( void )
5 {int i;
6 long double a = 0.0, b = 0.0, c = 0.0, d = 0.0, e = 0.0, f = 0.0, g = 0.0, h = 0.0;
7 for (i = 0; i < 10; i++) {
8 a += 1.1; b += 1.2; c += 1.3; d += 1.4; e += 1.5; f += 1.6;
9 g += 1.7; h += 1.8001;
11 return a+b+c+d+e+f+g+h;
14 int main ( void )
16 double r = qq();
17 printf("answer is %f %d\n", r, (int)r );
18 return 0;