blob: 023951e41f607be6e75bc21e71bba3db93198e41 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
// expect: zy: index -1 out of range (length 2)/ at <stdin>:7 in main/
include rt;
void pn(int x) { rt.put_n(x); rt.put_c(10); }
fn main() {
int[?] a = {1, 2};
int i = 0 - 1;
pn(a[i]);
pn(99);
return 0;
}
// zc0: skip
|