186e1efb64cb9df5eb72b42cd8777715e122231c
[uebersetzerbau-ss10.git] / aus_sammelwut / paulchen / ublu / ss08 / abgabe / codeb / testcases / g2.call
1 extern long g2(long a, long b);
2
3 int check_arg2(long (*function)(long, long), long blubb[2][2]) {
4         int ret,a,b;
5         ret=1;
6         for(a=0;a<2;a++) {
7                 for(b=0;b<2;b++) {
8                         ret&=(function(a,b)==blubb[a][b]);
9                 }
10         }
11         return ret;
12 }
13
14 long ret_g2[2][2]={{1,0},{1,1}};
15
16 return check_arg2(g2,ret_g2);
17
18