shithub: mc

ref: 3b6a42aaa1dfb75db06e9bf8cb7953cecefc647f
dir: /test/outparam.myr/

View raw version
use std
/* should assign through an out pointer parameter, exiting with status 42 */
const f = {out
	out# = 42
}

const main = {
	var v

	v = 16
	f(&v)
	std.exit(v)
}