File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -624,6 +624,7 @@ RUN(NAME symbolics_03 LABELS cpython_sym c_sym)
624624RUN (NAME symbolics_04 LABELS cpython_sym c_sym )
625625RUN (NAME symbolics_05 LABELS cpython_sym c_sym )
626626RUN (NAME symbolics_06 LABELS cpython_sym c_sym )
627+ RUN (NAME symbolics_07 LABELS cpython_sym c_sym )
627628
628629RUN (NAME sizeof_01 LABELS llvm c
629630 EXTRAFILES sizeof_01b.c )
Original file line number Diff line number Diff line change 1+ from lpython import ccall
2+
3+ @ccall (header = "symengine/cwrapper.h" )
4+ def basic_new_heap () -> CPtr :
5+ pass
6+
7+ @ccall (header = "symengine/cwrapper.h" )
8+ def basic_const_pi (x : CPtr ) -> None :
9+ pass
10+
11+ @ccall (header = "symengine/cwrapper.h" )
12+ def basic_str (x : CPtr ) -> str :
13+ pass
14+
15+ def main0 ():
16+ x : CPtr = basic_new_heap ()
17+ basic_const_pi (x )
18+ s : str = basic_str (x )
19+ print (s )
20+ assert s == "pi"
21+
22+ main0 ()
You can’t perform that action at this time.
0 commit comments