Skip to content

Commit 6d5d634

Browse files
committed
Add var_rval failing test
1 parent 6fea580 commit 6d5d634

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

tests/failing_tests/var_rval.py

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

0 commit comments

Comments
 (0)