summaryrefslogtreecommitdiff
path: root/test/outparam.myr
blob: 654d65dc8d72fc81617609fa6742557b5c4e9824 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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)
}