Initial project import

This commit is contained in:
Agila Forge Importer committed 2026-07-13 15:20:32 +00:00
commit 23f2d29e32
11957 files changed
+1754577

No files matched your search

+32
View File
@@ -0,0 +1,32 @@
fn test_g_main_argc() {
assert g_main_argc > 0
}
fn test_g_main_argv() {
assert g_main_argv != 0
mut first_arg := ''
$if windows {
first_arg = unsafe { string_from_wide(&&u16(g_main_argv)[0]) }
} $else {
first_arg = unsafe { cstring_to_vstring(&&char(g_main_argv)[0]) }
}
assert first_arg.contains('builtin_test')
}
fn test_c_strstr_is_declared() {
found := unsafe { C.strstr(c'hello world', c'world') } != unsafe { nil }
assert found
}
@[if windows]
fn test_bool_size() {
println(@LOCATION)
assert sizeof(C.BOOL) == 4
}
fn test_v_getpid__and__v_gettid() {
p := v_getpid()
dump(p)
t := v_gettid()
dump(t)
}