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

ci: fix multiret_with_ptrtype_test.v

This commit is contained in:
Delyan Angelov 2021-04-05 08:31:20 +03:00
parent 63a1c32a17
commit d82a0c1637
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -2,15 +2,15 @@ fn multi_voidptr_ret() (voidptr, bool) {
return voidptr(0), true
}
fn multi_byteptr_ret() (byteptr, bool) {
return byteptr(0), true
fn multi_byteptr_ret() (&byte, bool) {
return &byte(0), true
}
fn test_multi_ptrtype_ret() {
a, b := multi_voidptr_ret()
assert a == voidptr(0)
assert u64(a) == 0
assert b == true
c, d := multi_byteptr_ret()
assert c == byteptr(0)
assert u64(c) == 0
assert d == true
}