Skip to content

Commit 430617d

Browse files
add binops1.py failing test
1 parent 7d91f88 commit 430617d

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tests/failing_tests/binops1.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
from pythonbpf import compile, bpf, section, bpfglobal
2+
from ctypes import c_void_p, c_int64
3+
4+
@bpf
5+
@section("sometag1")
6+
def sometag(ctx: c_void_p) -> c_int64:
7+
b = 1 + 2
8+
a = 1 + b
9+
return c_int64(a)
10+
11+
@bpf
12+
@bpfglobal
13+
def LICENSE() -> str:
14+
return "GPL"
15+
16+
compile()

0 commit comments

Comments
 (0)