summaryrefslogtreecommitdiff
path: root/test/array.myr
blob: 92d6f83b4d34d027e0bde70142fec7ed0241015d (plain)
1
2
3
4
5
6
7
8
9
use std
/* tests reading and writing to arrays. should exit with 7 */
const main = {
	var a : int[3]
	a[0] = 3
	a[1] = 4
	a[2] = a[0] + a[1]
	std.exit(a[2])
}