mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
ci: make pass_voidptr_as_interface_reference_test.v use voidptr again
This commit is contained in:
parent
2e89eeb477
commit
cdefb878d6
@ -15,5 +15,5 @@ fn test_passing_voidptr_as_an_interface_reference() {
|
|||||||
assert f(&i) == '&IAbc(Abc{})'
|
assert f(&i) == '&IAbc(Abc{})'
|
||||||
// a voidptr() cast is an escape hatch, that should be allowed
|
// a voidptr() cast is an escape hatch, that should be allowed
|
||||||
// but perhaps it should be forced by the compiler to be in unsafe{}
|
// but perhaps it should be forced by the compiler to be in unsafe{}
|
||||||
assert f(unsafe { nil }) == '&IAbc(0x0)'
|
assert f(unsafe { voidptr(u64(0)) }) == '&IAbc(0x0)'
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user