v/vlib/v/tests/c_const_u8_test.v
2025-07-19 19:27:59 +03:00

18 lines
258 B
V

import net
const C.AF_UNIX u16
fn x16(n u16) bool {
return true
}
fn xint(n int) bool {
return true
}
fn test_const() {
assert xint(C.EOF) == true // a random libc const is int by default
assert x16(C.AF_INET) == true // defined in V's net module
}