summaryrefslogtreecommitdiff
path: root/test/slicelen.myr
blob: 4a213ad949b4b1c53d2acb1234b7dea87a59ff74 (plain)
1
2
3
4
5
6
7
8
9
10
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)
}