diff --git a/integration_tests/CMakeLists.txt b/integration_tests/CMakeLists.txt index 61d5c10e90..55f6d3d92f 100644 --- a/integration_tests/CMakeLists.txt +++ b/integration_tests/CMakeLists.txt @@ -133,6 +133,7 @@ RUN(NAME expr_04 LABELS cpython llvm c) RUN(NAME expr_05 LABELS cpython llvm) RUN(NAME expr_06 LABELS cpython llvm) RUN(NAME expr_08 LABELS llvm c) +RUN(NAME expr_10 LABELS cpython) RUN(NAME test_types_01 LABELS cpython llvm) RUN(NAME test_str_01 LABELS cpython llvm) RUN(NAME test_str_02 LABELS cpython llvm) diff --git a/integration_tests/expr_10.py b/integration_tests/expr_10.py new file mode 100644 index 0000000000..d932675749 --- /dev/null +++ b/integration_tests/expr_10.py @@ -0,0 +1,10 @@ +from ltypes import i32 + +def g() -> i32: + return 5 + +def test_fn1(): + i: i32 = g() + g() + +test_fn1()