aboutsummaryrefslogtreecommitdiff
path: root/tests/conformance/3-expressions/dyn_array_pop_empty.zc
blob: 6f5fdd0961dbe63eb7ddf7967531d22b0c31b785 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
// expect: zy: index -1 out of range (length 0)/
include rt;
void pn(int x) { rt.put_n(x); rt.put_c(10); }
fn main() {
	int[?] a = rt.new(int[?]);
	pn(pop(a));
	pn(99);
	return 0;
}
// zc0: skip