shithub: mc

ref: 11f0b71e1df81a2764d6dc0de9903f9a6d6ef7a6
dir: /test/slicelen.myr/

View raw version
use std
/* checks that taking incomplete slices calculates the length correctly.
* should exit with 5. */
const main = {
	var a : int[8]
	var s

	s = a[1:6]
	std.exit(s.len)
}