shithub: mc

ref: 905f4d10a78e7e2f6eb849cf373b14cd78c87d73
dir: /test/structret.myr/

View raw version
use std
/* tests returning large structs. should exit with 42. */
type pair = struct
	a : int
	b : int
;;

const f = {
	var s

	s.a = 12
	s.b = 30
	-> s
}

const main = {
	var s : pair

	s = f()
	std.exit(s.a + s.b)
}