1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/vlib/v/tests/voidptr_to_u64_cast_b_test.v

11 lines
209 B
V

fn receive_u64_return_addr(something u64) voidptr {
return voidptr(something)
}
fn test_u64_to_void_pointer_cast_via_fn_call() {
a := u64(100)
b := receive_u64_return_addr(a)
c := u64(b)
assert a == c
}