shithub: mc

ref: 6d707df71c0fe11da7dd53bf36eb3d3fadb8ec9b
dir: /test/callbig.myr/

View raw version
use std
/* checks that calls with large return values (ie, ones that don't fit in a
* register) works correctly. Should exit with 42. */
type pair = struct
	a : int
	b : int
;;

const f = {s
	-> s.a  + s.b
}

const main = {
	var s : pair
	s.a = 12
	s.b = 30
	std.exit(f(s))
}