mirror of
https://github.com/varun-r-mallya/Python-BPF.git
synced 2025-12-31 21:06:25 +00:00
add binops1.py failing test
This commit is contained in:
16
tests/failing_tests/binops1.py
Normal file
16
tests/failing_tests/binops1.py
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
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:
|
||||||
|
b = 1 + 2
|
||||||
|
a = 1 + b
|
||||||
|
return c_int64(a)
|
||||||
|
|
||||||
|
@bpf
|
||||||
|
@bpfglobal
|
||||||
|
def LICENSE() -> str:
|
||||||
|
return "GPL"
|
||||||
|
|
||||||
|
compile()
|
||||||
Reference in New Issue
Block a user