Gitly
English
Русский
Español
日本語
中文
Português
Log in
Register
v2
/
vlib
/
v
/
tests
/
casts
/
voidptr_to_u64_cast_b_test.v
10
lines
·
9
sloc
·
209 bytes
·
6488041a749df9762348d019c4223908c476f2e2
Raw
1
fn
receive_u64_return_addr(something u64) voidptr {
2
return
voidptr(something)
3
}
4
5
fn
test_u64_to_void_pointer_cast_via_fn_call() {
6
a := u64(100)
7
b := receive_u64_return_addr(a)
8
c := u64(b)
9
assert a == c
10
}
11