ci: fix multiret_with_ptrtype_test.v
parent
63a1c32a17
commit
d82a0c1637
|
@ -2,15 +2,15 @@ fn multi_voidptr_ret() (voidptr, bool) {
|
||||||
return voidptr(0), true
|
return voidptr(0), true
|
||||||
}
|
}
|
||||||
|
|
||||||
fn multi_byteptr_ret() (byteptr, bool) {
|
fn multi_byteptr_ret() (&byte, bool) {
|
||||||
return byteptr(0), true
|
return &byte(0), true
|
||||||
}
|
}
|
||||||
|
|
||||||
fn test_multi_ptrtype_ret() {
|
fn test_multi_ptrtype_ret() {
|
||||||
a, b := multi_voidptr_ret()
|
a, b := multi_voidptr_ret()
|
||||||
assert a == voidptr(0)
|
assert u64(a) == 0
|
||||||
assert b == true
|
assert b == true
|
||||||
c, d := multi_byteptr_ret()
|
c, d := multi_byteptr_ret()
|
||||||
assert c == byteptr(0)
|
assert u64(c) == 0
|
||||||
assert d == true
|
assert d == true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue