1
0
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:
Delyan Angelov 2022-07-21 22:41:27 +03:00
parent 2e89eeb477
commit cdefb878d6
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -15,5 +15,5 @@ fn test_passing_voidptr_as_an_interface_reference() {
assert f(&i) == '&IAbc(Abc{})'
// a voidptr() cast is an escape hatch, that should be allowed
// 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)'
}