doc: paulchen beispiele {code{a,b},gesamt} entpackt (jedes mal entpacken nervt langsa...
[uebersetzerbau-ss10.git] / aus_sammelwut / paulchen / ublu / ss08 / abgabe / codeb / testcases / h18.call
1 extern long h18(long a, long b, long c, long d);
2
3 int check_arg4(long (*function)(long, long, long, long), long blubb[2][2][2][2]) {
4         int ret,a,b,c,d;
5         ret=1;
6         for(a=0;a<2;a++) {
7                 for(b=0;b<2;b++) {
8                         for(c=0;c<2;c++) {
9                                 for(d=0;d<2;d++) {
10                                         ret&=(function(a,b,c,d)==blubb[a][b][c][d]);
11                                 }
12                         }
13                 }
14         }
15         return ret;
16 }
17
18 long ret_h18[2][2][2][2]={{{{1,1},{1,1}},{{1,1},{1,0}}},{{{1,1},{1,1}},{{1,1},{1,1}}}};
19
20 return check_arg4(h18,ret_h18);
21