shithub: mc

ref: 3c9502102b2b01d6b32dad5f4f23f6f1fe736721
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

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