File tree Expand file tree Collapse file tree 3 files changed +16
-2
lines changed Expand file tree Collapse file tree 3 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -775,6 +775,7 @@ RUN(NAME func_dep_03 LABELS cpython llvm c)
775
775
RUN (NAME func_dep_04 LABELS cpython llvm c )
776
776
RUN (NAME func_internal_def_01 LABELS cpython llvm NOFAST )
777
777
RUN (NAME func_01 LABELS cpython llvm )
778
+ RUN (NAME func_02 LABELS c_sym )
778
779
779
780
RUN (NAME float_01 LABELS cpython llvm c wasm wasm_x64 )
780
781
RUN (NAME recursive_01 LABELS cpython llvm c wasm wasm_x64 wasm_x86 )
Original file line number Diff line number Diff line change
1
+ from lpython import S
2
+ from sympy import pi
3
+
4
+ def func (r : Out [S ]) -> None :
5
+ r = pi
6
+
7
+ def test_func ():
8
+ z : S
9
+ func (z )
10
+ print (z )
11
+ assert z == pi
12
+
13
+ test_func ()
Original file line number Diff line number Diff line change 1
1
from lpython import S
2
- from sympy import pi , Symbol
2
+ from sympy import pi
3
3
4
4
def func () -> S :
5
5
return pi
@@ -9,4 +9,4 @@ def test_func():
9
9
print (z )
10
10
assert z == pi
11
11
12
- test_func ()
12
+ test_func ()
You can’t perform that action at this time.
0 commit comments