summaryrefslogtreecommitdiffstats
path: root/test/lib-test-args.c
blob: 84b5c29ae8d7b8c5e6ffd51d61aee562af4d3f45 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180

char test_char_1(char a)
{
	return a*a;
}

char test_char_2(char a, char b)
{
	return a - b;
}

char test_char_3(char a, char b, char c)
{
	return a * b - c;
}

char test_char_4(char a, char b, char c, char d)
{
	return a + b - c * d;
}

char test_char_5(char a, char b, char c, char d, char e)
{
	return a + b * c / d * e;
}

char test_char_6(char a, char b, char c, char d, char e, char f)
{
	return a / b * c / d * e - f;
}

char test_char_7(char a, char b, char c, char d, char e, char f, char g)
{
	return a / b + c - d * e + f * g;
}

char test_char_8(char a, char b, char c, char d, char e, char f, char g, char h)
{
	return a + b + c - d + e - f + g / h;
}

char test_char_9(char a, char b, char c, char d, char e, char f, char g, char h, char i)
{
	return a - b + c - d * e - f / g - h - i;
}

short test_short_1(short a)
{
	return -a;
}

short test_short_2(short a, short b)
{
	return a + b;
}

short test_short_3(short a, short b, short c)
{
	return a + b - c;
}

short test_short_4(short a, short b, short c, short d)
{
	return a + b * c + d;
}

short test_short_5(short a, short b, short c, short d, short e)
{
	return a + b - c + d * e;
}

short test_short_6(short a, short b, short c, short d, short e, short f)
{
	return a * b * c + d * e - f;
}

short test_short_7(short a, short b, short c, short d, short e, short f, short g)
{
	return a / b + c + d * e - f * g;
}

short test_short_8(short a, short b, short c, short d, short e, short f, short g, short h)
{
	return a + b + c + d + e + f + g + h;
}

short test_short_9(short a, short b, short c, short d, short e, short f, short g, short h, short i)
{
	return a - b - c - d - e - f - g - h - i;
}

int test_int_1(int a)
{
	return -a;
}

int test_int_2(int a, int b)
{
	return a + b;
}

int test_int_3(int a, int b, int c)
{
	return a + b - c;
}

int test_int_4(int a, int b, int c, int d)
{
	return a + b * c + d;
}

int test_int_5(int a, int b, int c, int d, int e)
{
	return a + b - c + d * e;
}

int test_int_6(int a, int b, int c, int d, int e, int f)
{
	return a * b * c + d * e - f;
}

int test_int_7(int a, int b, int c, int d, int e, int f, int g)
{
	return a / b + c + d * e - f * g;
}

int test_int_8(int a, int b, int c, int d, int e, int f, int g, int h)
{
	return a + b + c + d + e + f + g + h;
}

int test_int_9(int a, int b, int c, int d, int e, int f, int g, int h, int i)
{
	return a - b - c - d - e - f - g - h - i;
}

long test_long_1(long a)
{
	return -a;
}

long test_long_2(long a, long b)
{
	return a + b;
}

long test_long_3(long a, long b, long c)
{
	return a + b - c;
}

long test_long_4(long a, long b, long c, long d)
{
	return a + b * c + d;
}

long test_long_5(long a, long b, long c, long d, long e)
{
	return a + b - c + d * e;
}

long test_long_6(long a, long b, long c, long d, long e, long f)
{
	return a * b * c + d * e - f;
}

long test_long_7(long a, long b, long c, long d, long e, long f, long g)
{
	return a / b + c + d * e - f * g;
}

long test_long_8(long a, long b, long c, long d, long e, long f, long g, long h)
{
	return a + b + c + d + e + f + g + h;
}

long test_long_9(long a, long b, long c, long d, long e, long f, long g, long h, long i)
{
	return a - b - c - d - e - f - g - h - i;
}