v/vlib/v/tests/goto_test.v

14 lines
110 B
V

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