v/vlib/v/tests/double_ref_deref_test.v

11 lines
133 B
V

fn process(foo &&int) int {
return **foo
}
fn test_ref_deref() {
foo := 12
bar := &foo
fiz := process(&bar)
assert fiz == 12
}