Files
python-bpf/tests/passing_tests/var_rval.py
Pragyansh Chaturvedi 283b947fc5 Add named_arg failing test
2025-10-04 19:50:33 +05:30

21 lines
301 B
Python

import logging
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(loglevel=logging.INFO)