Test case for historical reasons
[libfirm] / ir / be / test / fehler147.c
1 float g = 0.098;
2
3 #define myftol(x) ((int)(x))
4
5 void foo(unsigned char *colors) {
6         int v;
7         float glow = g;
8
9         v = myftol(255*glow);
10         colors[0] = colors[1] = colors[2] = v;
11 }
12
13 int main(void) {
14         unsigned char colors[3];
15         foo(colors);
16         printf("%d %d %d\n", colors[0], colors[1], colors[2]);
17         return 0;
18 }