icc doesn't like -fomit-frame-pointer without -O
[libfirm] / ir / be / test / convtest.c
1 #include <stdio.h>
2
3 int bla(char a, char b, char c, char d, short e, short f, short g, int h, int i, float j) {
4         return a + b + c + d + e + f + g + h + i + (int)j;
5 }
6
7 int convtest_func(char c, short s, int i, float f, double d) {
8         char sc = c + s;
9         char ic = c + i;
10         char fc = c + f;
11         char dc = c + d;
12         short is = s + i;
13         short fs = s + f;
14         short ds = s + d;
15     //int ti = i + s;
16         int fi = i + f;
17         int di = i + d;
18         float df = d + f;
19
20         return bla(sc, ic, fc, dc, is, fs, ds, fi, di, df);
21 }
22
23 int main() {
24         printf("%d (expected 7576)\n", convtest_func('a', 42, 2444, 7.753f, 8.222));
25         return 0;
26 }