Files
python-bpf/tests/failing_tests/var_rval.py
Pragyansh Chaturvedi 6d5d6345e2 Add var_rval failing test
2025-10-03 18:01:15 +05:30

19 lines
264 B
Python

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()