mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
19 lines
251 B
V
19 lines
251 B
V
fn test_isnil_byteptr() {
|
|
pb := &byte(0)
|
|
assert isnil(pb)
|
|
}
|
|
|
|
fn test_isnil_voidptr() {
|
|
pv := voidptr(0)
|
|
assert isnil(pv)
|
|
}
|
|
|
|
fn test_isnil_charptr() {
|
|
pc := &char(0)
|
|
assert isnil(pc)
|
|
}
|
|
|
|
fn test_isnil_intptr() {
|
|
pi := &int(0)
|
|
assert isnil(pi)
|
|
}
|