summaryrefslogtreecommitdiff
path: root/test/voidcall.myr
blob: 03d487b10719ff96f561a468fc3e389161c9a685 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
use std
/* checks that calling void functions works. should compile, and not die
when running. the exit value is 12, but it's really a dummy. */
const f = {
	var a

	a = a + 1
}

const main = {
	f()
	std.exit(12)
}