shithub: mc

ref: ff88594df5c5df6fb8f227ab8e5df3529ba6e72f
dir: /test/structarray.myr/

View raw version
use std
/* tests a struct containing an array. exit status should be 42. */
type t = struct
	a : int[42]
;;

const main = {
	var v : t

	v.a[0] = 11
	v.a[1] = 20

	std.exit(2*v.a[0] + v.a[1])
}