Skip to content

Commit b5404ab

Browse files
committed
Add a test
1 parent 9c5b4e0 commit b5404ab

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

integration_tests/bindc_01.py

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
from lpython import c_p_pointer, CPtr, i16, Pointer, empty_c_void_p
22

3-
queries: CPtr = empty_c_void_p()
4-
x: Pointer[i16] = c_p_pointer(queries, i16)
5-
print(queries, x)
3+
4+
def f():
5+
queries: CPtr = empty_c_void_p()
6+
x: Pointer[i16] = c_p_pointer(queries, i16)
7+
print(queries, x)
8+
9+
10+
def test_issue_1781():
11+
p: CPtr = empty_c_void_p()
12+
assert p == empty_c_void_p()
13+
14+
15+
test_issue_1781()
16+
f()

0 commit comments

Comments
 (0)