v/vlib/v/tests/goto_test.v

11 lines
93 B
V

fn test_goto() {
mut i := 0
a: b := 1
_ = b
i++
if i < 3 {
goto a
}
assert i == 3
}