1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
Files
v/vlib/v/tests/double_ref_deref_test.v
2020-06-13 00:01:44 +02:00

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
}