Skip to content

Commit db70507

Browse files
committed
Add a test
1 parent 714d673 commit db70507

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

integration_tests/bindc_03.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,14 @@ def h(q_void: CPtr) -> None:
4242
print(el)
4343
assert el == i * i + i%2
4444

45+
46+
@ccallable(header="_test_bindc_03_my_header.h")
47+
def test_emit_header_ccallable() -> i32:
48+
i: i32 = 5
49+
assert i == 5
50+
i = i*5
51+
return i + 10
52+
4553
def run():
4654
a: CPtr
4755
array_wrapped: ArrayWrapped = ArrayWrapped(a)
@@ -59,5 +67,6 @@ def run():
5967
f(array_wrapped.array)
6068
array_wrapped1 = array_wrapped
6169
h(array_wrapped1.array)
70+
assert test_emit_header_ccallable() == 35
6271

6372
run()

0 commit comments

Comments
 (0)