1 #!/usr/local/bin/rune -x
3 # Demonstrate array bounds checking
8 alias stdio.File @stdout = stdio.stdout;
11 main(int ac, string_p *av)
13 string_p s = "charlie";
16 # char *ptr = &buf[0];
20 # for (int i = 0; i < 33; ++i) {
21 # stdio.show("loop", i);
26 stdout->show("loop 32 should be out of bounds");
27 for (int i = 0; i < 33; ++i) {
28 stdout->show("loop", i);