shithub: mc

ref: 6e5b64b5b225a3a491cc07dbb6f300bd4a5994b2
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)
}