fehler120: Backend discards float->int Conv for shift amount.
[libfirm] / ir / be / test / fehler073.c
1
2 float f(float a, float b) {
3         return a*a + b*b;
4 }
5
6 int fi(int a, int b) {
7         return a*a + b*b;
8 }
9
10 int main(void) {
11         float a = 3;
12         float b = 4;
13         float c = 5;
14         printf("%.30f %.30f %.30f %.30f %.30f\n", a, b, c, f(a, b), c*c);
15         printf("%d\n", fi(3, 4));
16         return 0;
17 }