Add var_rval failing test

This commit is contained in:
Pragyansh Chaturvedi
2025-10-03 18:01:15 +05:30
parent 6fea580693
commit 6d5d6345e2

View File

@ -0,0 +1,18 @@
from pythonbpf import compile, bpf, section, bpfglobal
from ctypes import c_void_p, c_int64
@bpf
@section("sometag1")
def sometag(ctx: c_void_p) -> c_int64:
a = 1 - 1
return c_int64(a)
@bpf
@bpfglobal
def LICENSE() -> str:
return "GPL"
compile()