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

15 lines
301 B
V

import dl
type RealOpen = fn (charptr, int, int) int
fn test_rtld_next() {
$if windows {
println('skipping test_rtld_next on windows')
return
}
real_open := RealOpen((dl.sym(dl.rtld_next, 'open')))
println(ptr_str(real_open))
assert real_open != unsafe { nil }
assert dl.dlerror() == ''
}