1 #!/usr/local/bin/rune -x -d
3 # Demonstrate basic arrays.
11 test(const char *str, ...)
13 int *v = (int *)self.__vardata[0];
14 stdio.stdout->show("XXXXXXX", v);
21 main(int ac, char **av)
33 f1 = f2; /* XXX should disallow this */
34 stdio.stdout->show("f2(5):", f1[3]);
43 stdio.stdout->show("Array:", array[0], array[1], array[2], array[3]);
44 # stdio.stdout->show("Array:", &a);
45 # stdio.stdout->show("XXX need auto array teardown");
46 # stdio.stdout->show("XXX deref args on return");
49 # array[0] = NULL; # XXX teardown
57 # should be pass-by-copy so our modification here should not have
58 # affected the results.
61 pass_array(int *array[4])