- more -f combo tests
[libfirm] / ir / be / test / optest.c
1 #include <stdio.h>
2
3 #define tname(x) x##long
4 #define T long
5 #include "optest.h"
6
7 #undef tname
8 #undef T
9 #define tname(x) x##int
10 #define T int
11 #include "optest.h"
12
13 #undef tname
14 #undef T
15 #define tname(x) x##short
16 #define T short
17 #include "optest.h"
18
19 #undef tname
20 #undef T
21 #define tname(x) x##char
22 #define T char
23 #include "optest.h"
24
25 #define TEST_UNSIGNED
26
27 #undef tname
28 #undef T
29 #define tname(x) x##unsigned_long
30 #define T unsigned long
31 #include "optest.h"
32
33 #undef tname
34 #undef T
35 #define tname(x) x##unsigned_int
36 #define T unsigned int
37 #include "optest.h"
38
39 #undef tname
40 #undef T
41 #define tname(x) x##unsigned_short
42 #define T unsigned short
43 #include "optest.h"
44
45 #undef tname
46 #undef T
47 #define tname(x) x##unsigned_char
48 #define T unsigned char
49 #include "optest.h"
50
51 #if 0
52 #undef tname
53 #undef T
54 #define tname(x) x##unsigned_long_long
55 #define T unsigned long long
56 #include "optest.h"
57
58 #undef TEST_UNSIGNED
59
60 #undef tname
61 #undef T
62 #define tname(x) x##long_long
63 #define T long long
64 #include "optest.h"
65 #endif
66
67 int main(int argc, char *argv[]) {
68         test_long();
69         test_int();
70         test_short();
71         test_char();
72         test_unsigned_long();
73         test_unsigned_int();
74         test_unsigned_short();
75         test_unsigned_char();
76 #if 0
77         test_unsigned_long_long();
78         test_long_long();
79 #endif
80         return 0;
81 }