mirror of
https://github.com/vlang/v.git
synced 2025-08-03 17:57:59 -04:00
18 lines
258 B
V
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
|
|
}
|