shithub: mc

ref: f6fadc8f08a0732f22ec6df34822f45e0f3a7f60
dir: /test/global-arrayvar.myr/

View raw version
/* tests that global arrays work as expected, and are zero-initialized by
* default. should exit with 7 */
var a : int[10]

const main = {
	a[0] = 3
	a[1] = 4
	-> a[0] + a[1] + a[2] + a[3]
}