shithub: mc

ref: 0f7fbc2dcbb934a3aa62aa4a69db432b4d20b7c1
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)
}