1 #!/usr/local/bin/rune -x
3 # Demonstrate basic arrays.
11 test(string_p str, ...)
13 int *v = (int *)self.__vardata[0];
15 stdio.stdout->show("XXXXXXX", v);
22 main(int ac, string_p *av)
34 f1 = f2; /* XXX should disallow this */
35 stdio.stdout->show("f2(5):", f1[3]);
39 stdio.stdout->show("f2(5):", f1[3]);
46 stdio.stdout->show("Array:", array[0], array[1], array[2], array[3]);
47 # stdio.stdout->show("Array:", &a);
48 # stdio.stdout->show("XXX need auto array teardown");
49 # stdio.stdout->show("XXX deref args on return");
52 # array[0] = NULL; # XXX teardown
60 # should be pass-by-copy so our modification here should not have
61 # affected the results.
64 pass_array(int *array[4])