summaryrefslogtreecommitdiff
path: root/Examples/test-suite/tcl/null_pointer_runme.tcl
blob: 7ed87c153be9d29c59d0b8fbf8f59f3961d79628 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
if [ catch { load ./null_pointer[info sharedlibextension] null_pointer} err_msg ] {
	puts stderr "Could not load shared object:\n$err_msg"
}

set a [A]
if {[funk $a] != 0} {
    puts stderr "null_pointer test 1 failed"
    exit 1
}

set null [getnull]
if {$null != "NULL"} {
    puts stderr "null_pointer test 2 failed"
    exit 1
}

if {[llength [info commands "NULL"]] != 0} {
    puts stderr "null_pointer test 3 failed"
    exit 1
}