shithub: mc

ref: 3a49659e6d6d1d0289b7b0501eb03f23d48e828f
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)
}