26f5bcab4801fa89d2b0cccfb70562acdffa7589
[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         char fc = c;
13         char dc = c;
14         //short is = s + i;
15         //short fs = s + f;
16         //short ds = s + d;
17         short is = s;
18         short fs = s + f;
19         short ds = s;
20         //int fi = i + f;
21         //int di = i + d;
22         int fi = i + f;
23         int di = i;
24         //float df = d + f;
25         double df = d;
26
27         return bla(sc, ic, fc, dc, is, fs, ds, fi, di, df);
28 }
29
30 int main() {
31         printf("%d\n", convtest_func('a', 42, 2444, 7.153f, 8.222));
32         return 0;
33 }