summaryrefslogtreecommitdiff
path: root/test/local-labels.myr
blob: 66a81603fee04d075588b02f1eaff04a15e02373 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std

const main = {
	goto foo
	std.exit(123)
:foo
	std.exit(bar())
}

const bar = {
	goto foo
	-> 42
:foo
	-> 10
}