update globals test and todos.

This commit is contained in:
2025-10-04 06:36:26 +05:30
parent 7720fe9f9f
commit ab610147a5
2 changed files with 6 additions and 6 deletions

View File

@ -6,17 +6,17 @@ from ctypes import c_void_p, c_int64, c_int32
@bpf
@bpfglobal
def somevalue() -> c_int32:
return c_int32(0)
return c_int32(42)
@bpf
@bpfglobal
def somevalue2() -> c_int64:
return c_int64(0)
return c_int64(69)
@bpf
@bpfglobal
def somevalue1() -> c_int32:
return c_int32(0)
return c_int32(42)
# --- Passing examples ---
@ -31,7 +31,7 @@ def g1() -> c_int64:
@bpf
@bpfglobal
def g2() -> c_int64:
return c_int64(0)
return c_int64(69)
# --- Failing examples ---