doc: paulchen beispiele {code{a,b},gesamt} entpackt (jedes mal entpacken nervt langsa...
[uebersetzerbau-ss10.git] / aus_sammelwut / paulchen / ublu / ss08 / abgabe / gesamt / testcases / h14.call
diff --git a/aus_sammelwut/paulchen/ublu/ss08/abgabe/gesamt/testcases/h14.call b/aus_sammelwut/paulchen/ublu/ss08/abgabe/gesamt/testcases/h14.call
new file mode 100644 (file)
index 0000000..c050ddf
--- /dev/null
@@ -0,0 +1,21 @@
+extern long h14(long a, long b, long c, long d);
+
+int check_arg4(long (*function)(long, long, long, long), long blubb[2][2][2][2]) {
+       int ret,a,b,c,d;
+       ret=1;
+       for(a=0;a<2;a++) {
+               for(b=0;b<2;b++) {
+                       for(c=0;c<2;c++) {
+                               for(d=0;d<2;d++) {
+                                       ret&=(function(a,b,c,d)==blubb[a][b][c][d]);
+                               }
+                       }
+               }
+       }
+       return ret;
+}
+
+long ret_h14[2][2][2][2]={{{{0,0},{0,1}},{{0,0},{0,0}}},{{{0,0},{0,0}},{{0,0},{0,0}}}};
+
+return check_arg4(h14,ret_h14);
+