Skip to content

Commit 1ed8cb8

Browse files
authored
Merge pull request #666 from certik/fn1
Add a test for ignoring a function result
2 parents fb4a215 + fcdfb60 commit 1ed8cb8

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

integration_tests/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ RUN(NAME expr_04 LABELS cpython llvm c)
133133
RUN(NAME expr_05 LABELS cpython llvm)
134134
RUN(NAME expr_06 LABELS cpython llvm)
135135
RUN(NAME expr_08 LABELS llvm c)
136+
RUN(NAME expr_10 LABELS cpython)
136137
RUN(NAME test_types_01 LABELS cpython llvm)
137138
RUN(NAME test_str_01 LABELS cpython llvm)
138139
RUN(NAME test_str_02 LABELS cpython llvm)

integration_tests/expr_10.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
from ltypes import i32
2+
3+
def g() -> i32:
4+
return 5
5+
6+
def test_fn1():
7+
i: i32 = g()
8+
g()
9+
10+
test_fn1()

0 commit comments

Comments
 (0)