aboutsummaryrefslogtreecommitdiff
path: root/v_windows/v/old/vlib/builtin/isnil_test.v
blob: 15df9f0b7976111d2de3d8203b2606e8dd91a60c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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)
}