shithub: mc

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

View raw version
/* 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

	-> 2*v.a[0] + v.a[1]
}