From f437160ac2a34e1e64ccabe9e0ef9dbae5aab417 Mon Sep 17 00:00:00 2001 From: Saurabh Kumar Date: Sat, 23 Mar 2024 15:43:27 +0530 Subject: [PATCH 1/6] Fix list item symbolic pass --- src/libasr/pass/replace_symbolic.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/libasr/pass/replace_symbolic.cpp b/src/libasr/pass/replace_symbolic.cpp index 83da75603f..ddb43b1392 100644 --- a/src/libasr/pass/replace_symbolic.cpp +++ b/src/libasr/pass/replace_symbolic.cpp @@ -842,6 +842,11 @@ class ReplaceSymbolicVisitor : public PassUtils::PassVisitorm_a, list_item->m_pos, ASRUtils::TYPE(ASR::make_CPtr_t(al, x.base.base.loc)), nullptr)); print_tmp.push_back(basic_str(x.base.base.loc, value)); + } else { + ASR::expr_t *value = ASRUtils::EXPR(ASR::make_ListItem_t(al, + x.base.base.loc, list_item->m_a, list_item->m_pos, + ASRUtils::expr_type(val), nullptr)); + print_tmp.push_back(value); } } else { print_tmp.push_back(x.m_values[i]); From be94f56f85cb616d0e7a9761b2da0c69d89c5698 Mon Sep 17 00:00:00 2001 From: Saurabh Kumar Date: Sat, 23 Mar 2024 20:20:16 +0530 Subject: [PATCH 2/6] Tests: Add tests and update test references --- integration_tests/CMakeLists.txt | 1 + .../test_list_item_mixed_print.py | 45 +++++++++++++++++++ tests/reference/llvm-assert1-8df4f31.json | 2 +- tests/reference/llvm-assert1-8df4f31.stdout | 4 +- tests/reference/llvm-bindc_01-c984f09.json | 2 +- tests/reference/llvm-bindc_01-c984f09.stdout | 4 +- tests/reference/llvm-bool1-af4376b.json | 2 +- tests/reference/llvm-bool1-af4376b.stdout | 4 +- tests/reference/llvm-expr14-b96b5b1.json | 2 +- tests/reference/llvm-expr14-b96b5b1.stdout | 4 +- tests/reference/llvm-expr_01-54467c1.json | 2 +- tests/reference/llvm-expr_01-54467c1.stdout | 4 +- .../llvm-func_inline_01-2d4583a.json | 2 +- .../llvm-func_inline_01-2d4583a.stdout | 4 +- tests/reference/llvm-lpython1-23c5987.json | 2 +- tests/reference/llvm-lpython1-23c5987.stdout | 4 +- tests/reference/llvm-print_04-443a8d8.json | 2 +- tests/reference/llvm-print_04-443a8d8.stdout | 4 +- tests/reference/llvm-structs_11-09fea6a.json | 2 +- .../reference/llvm-structs_11-09fea6a.stdout | 4 +- .../llvm-test_issue_518-cdb641a.json | 2 +- .../llvm-test_issue_518-cdb641a.stdout | 4 +- .../llvm-test_unary_op_03-046fb86.json | 2 +- .../llvm-test_unary_op_03-046fb86.stdout | 4 +- tests/reference/llvm_dbg-expr_01-9fc5f30.json | 2 +- .../reference/llvm_dbg-expr_01-9fc5f30.stdout | 4 +- 26 files changed, 82 insertions(+), 36 deletions(-) create mode 100644 integration_tests/test_list_item_mixed_print.py diff --git a/integration_tests/CMakeLists.txt b/integration_tests/CMakeLists.txt index 8b82c9c373..d8fb3c5662 100644 --- a/integration_tests/CMakeLists.txt +++ b/integration_tests/CMakeLists.txt @@ -471,6 +471,7 @@ RUN(NAME print_float LABELS cpython llvm c wasm wasm_x64) RUN(NAME print_list_tuple_01 LABELS cpython llvm c NOFAST) RUN(NAME print_list_tuple_02 LABELS cpython llvm c NOFAST) RUN(NAME print_list_tuple_03 LABELS cpython llvm c NOFAST) +RUN(NAME test_list_item_mixed_print LABELS cpython llvm c NOFAST) # CPython and LLVM RUN(NAME const_01 LABELS cpython llvm c wasm) diff --git a/integration_tests/test_list_item_mixed_print.py b/integration_tests/test_list_item_mixed_print.py new file mode 100644 index 0000000000..5511aa737a --- /dev/null +++ b/integration_tests/test_list_item_mixed_print.py @@ -0,0 +1,45 @@ +from lpython import i32, f64 + +# Test for verifying printing items of different types with a list: +# 1. string and list item +# 2. integer and list item +# 3. float and list item +# 4. tuple and list item +# +# Also test with a list item which is a nested list. +def test_list_item_mixed_print(): + s_list: list[str] = ["Hello", "LPython"] + + print("", s_list[0]) + print("This is", s_list[1]) + + i_list: list[i32] = [1, 2, 3, 4, 5] + + print(i_list[0], i_list[1], i_list[2], "...", i_list[-3], i_list[-2], i_list[-1]) + print("The first element is:", i_list[0]) + + m: i32 = len(i_list) // 2 + print("The middle element is:", i_list[m]) + + f_list: list[f64] = [3.14, 6.28] + + print(f_list[0], "* 2 =", f_list[1]) + print("Total:", f_list[0] + f_list[1]) + + t: tuple[i32, i32, i32] = (1, 2, 3) + print(t, "is a tuple, but", i_list[0], "is a number.") + + i_list2: list[i32] = [1, 2, 3] + print(i_list2[0], i_list2[1], i_list2[2], sep=" is smaller than ") + + i: i32 + for i in range(len(i_list)): + print(i_list[i], end=" # ") + + n_list: list[list[i32]] = [[1, 2], [3, 4], [5, 6]] + for i in range(len(n_list)): + print("List ", i, ":", n_list[i]) + +test_list_item_mixed_print() + + \ No newline at end of file diff --git a/tests/reference/llvm-assert1-8df4f31.json b/tests/reference/llvm-assert1-8df4f31.json index d280f55589..f7af1f27c3 100644 --- a/tests/reference/llvm-assert1-8df4f31.json +++ b/tests/reference/llvm-assert1-8df4f31.json @@ -6,7 +6,7 @@ "outfile": null, "outfile_hash": null, "stdout": "llvm-assert1-8df4f31.stdout", - "stdout_hash": "de8886bdb5b86970a042b8ee00f309cf6bcf9e3e192cb4875ab3b2b0", + "stdout_hash": "15764832892f7e0cd2a438b247a148564f5f83b3a00ca929bd9cc625", "stderr": null, "stderr_hash": null, "returncode": 0 diff --git a/tests/reference/llvm-assert1-8df4f31.stdout b/tests/reference/llvm-assert1-8df4f31.stdout index 494dc5c091..084a225695 100644 --- a/tests/reference/llvm-assert1-8df4f31.stdout +++ b/tests/reference/llvm-assert1-8df4f31.stdout @@ -3,8 +3,8 @@ source_filename = "LFortran" define i32 @main(i32 %0, i8** %1) { .entry: - call void @_lpython_call_initial_functions(i32 %0, i8** %1) + call void @_lpython_set_argv(i32 %0, i8** %1) ret i32 0 } -declare void @_lpython_call_initial_functions(i32, i8**) +declare void @_lpython_set_argv(i32, i8**) diff --git a/tests/reference/llvm-bindc_01-c984f09.json b/tests/reference/llvm-bindc_01-c984f09.json index d49cc35592..b8bf60feb9 100644 --- a/tests/reference/llvm-bindc_01-c984f09.json +++ b/tests/reference/llvm-bindc_01-c984f09.json @@ -6,7 +6,7 @@ "outfile": null, "outfile_hash": null, "stdout": "llvm-bindc_01-c984f09.stdout", - "stdout_hash": "054106835033c19d6d0b10c264d915a4d4b11fee2a70abd6d66bade3", + "stdout_hash": "36302aceabcf2682f3e954ab4bc56dd960fe532dc7799cb58baa19a3", "stderr": null, "stderr_hash": null, "returncode": 0 diff --git a/tests/reference/llvm-bindc_01-c984f09.stdout b/tests/reference/llvm-bindc_01-c984f09.stdout index f5c2dbbbe4..16f056eec7 100644 --- a/tests/reference/llvm-bindc_01-c984f09.stdout +++ b/tests/reference/llvm-bindc_01-c984f09.stdout @@ -73,9 +73,9 @@ declare void @exit(i32) define i32 @main(i32 %0, i8** %1) { .entry: - call void @_lpython_call_initial_functions(i32 %0, i8** %1) + call void @_lpython_set_argv(i32 %0, i8** %1) call void @__module___main_____main__global_stmts() ret i32 0 } -declare void @_lpython_call_initial_functions(i32, i8**) +declare void @_lpython_set_argv(i32, i8**) diff --git a/tests/reference/llvm-bool1-af4376b.json b/tests/reference/llvm-bool1-af4376b.json index 446f579e9f..8a924e4972 100644 --- a/tests/reference/llvm-bool1-af4376b.json +++ b/tests/reference/llvm-bool1-af4376b.json @@ -6,7 +6,7 @@ "outfile": null, "outfile_hash": null, "stdout": "llvm-bool1-af4376b.stdout", - "stdout_hash": "7c68133cc3f970d6eddca6cf982fb405b5a1c8014ef5aa916ea38cf6", + "stdout_hash": "cb60cdc2beb220bbe693b54079b5ebc7efcdc2cdc830c3cc0e213c39", "stderr": null, "stderr_hash": null, "returncode": 0 diff --git a/tests/reference/llvm-bool1-af4376b.stdout b/tests/reference/llvm-bool1-af4376b.stdout index 630d17250f..67423eab3e 100644 --- a/tests/reference/llvm-bool1-af4376b.stdout +++ b/tests/reference/llvm-bool1-af4376b.stdout @@ -56,9 +56,9 @@ declare void @_lfortran_printf(i8*, ...) define i32 @main(i32 %0, i8** %1) { .entry: - call void @_lpython_call_initial_functions(i32 %0, i8** %1) + call void @_lpython_set_argv(i32 %0, i8** %1) call void @__module___main_____main__global_stmts() ret i32 0 } -declare void @_lpython_call_initial_functions(i32, i8**) +declare void @_lpython_set_argv(i32, i8**) diff --git a/tests/reference/llvm-expr14-b96b5b1.json b/tests/reference/llvm-expr14-b96b5b1.json index f94838f361..a3c6d2f1be 100644 --- a/tests/reference/llvm-expr14-b96b5b1.json +++ b/tests/reference/llvm-expr14-b96b5b1.json @@ -6,7 +6,7 @@ "outfile": null, "outfile_hash": null, "stdout": "llvm-expr14-b96b5b1.stdout", - "stdout_hash": "de8886bdb5b86970a042b8ee00f309cf6bcf9e3e192cb4875ab3b2b0", + "stdout_hash": "15764832892f7e0cd2a438b247a148564f5f83b3a00ca929bd9cc625", "stderr": null, "stderr_hash": null, "returncode": 0 diff --git a/tests/reference/llvm-expr14-b96b5b1.stdout b/tests/reference/llvm-expr14-b96b5b1.stdout index 494dc5c091..084a225695 100644 --- a/tests/reference/llvm-expr14-b96b5b1.stdout +++ b/tests/reference/llvm-expr14-b96b5b1.stdout @@ -3,8 +3,8 @@ source_filename = "LFortran" define i32 @main(i32 %0, i8** %1) { .entry: - call void @_lpython_call_initial_functions(i32 %0, i8** %1) + call void @_lpython_set_argv(i32 %0, i8** %1) ret i32 0 } -declare void @_lpython_call_initial_functions(i32, i8**) +declare void @_lpython_set_argv(i32, i8**) diff --git a/tests/reference/llvm-expr_01-54467c1.json b/tests/reference/llvm-expr_01-54467c1.json index 2c12ec9785..f3c32d129d 100644 --- a/tests/reference/llvm-expr_01-54467c1.json +++ b/tests/reference/llvm-expr_01-54467c1.json @@ -6,7 +6,7 @@ "outfile": null, "outfile_hash": null, "stdout": "llvm-expr_01-54467c1.stdout", - "stdout_hash": "951a792984bf209b37aafc95435eb319906b5c9cb22a62a018556f06", + "stdout_hash": "8018bddb16bb05f28f77e84b0c4bb63a5515c75d5fee087543a243b5", "stderr": null, "stderr_hash": null, "returncode": 0 diff --git a/tests/reference/llvm-expr_01-54467c1.stdout b/tests/reference/llvm-expr_01-54467c1.stdout index e4b4598e72..1eb63578bf 100644 --- a/tests/reference/llvm-expr_01-54467c1.stdout +++ b/tests/reference/llvm-expr_01-54467c1.stdout @@ -33,9 +33,9 @@ declare void @_lfortran_printf(i8*, ...) define i32 @main(i32 %0, i8** %1) { .entry: - call void @_lpython_call_initial_functions(i32 %0, i8** %1) + call void @_lpython_set_argv(i32 %0, i8** %1) call void @__module___main_____main__global_stmts() ret i32 0 } -declare void @_lpython_call_initial_functions(i32, i8**) +declare void @_lpython_set_argv(i32, i8**) diff --git a/tests/reference/llvm-func_inline_01-2d4583a.json b/tests/reference/llvm-func_inline_01-2d4583a.json index 60381a81be..075a1dfc5f 100644 --- a/tests/reference/llvm-func_inline_01-2d4583a.json +++ b/tests/reference/llvm-func_inline_01-2d4583a.json @@ -6,7 +6,7 @@ "outfile": null, "outfile_hash": null, "stdout": "llvm-func_inline_01-2d4583a.stdout", - "stdout_hash": "3d0670fb3a5502d046ad0acaa0b5d0f06cd05285df45bef0eca0b626", + "stdout_hash": "a91f2155136dbc019a41e5b1006d9b4a9e1f7def08086e307aafd15c", "stderr": null, "stderr_hash": null, "returncode": 0 diff --git a/tests/reference/llvm-func_inline_01-2d4583a.stdout b/tests/reference/llvm-func_inline_01-2d4583a.stdout index 9c38b8e90a..ec43646d47 100644 --- a/tests/reference/llvm-func_inline_01-2d4583a.stdout +++ b/tests/reference/llvm-func_inline_01-2d4583a.stdout @@ -92,9 +92,9 @@ declare void @exit(i32) define i32 @main(i32 %0, i8** %1) { .entry: - call void @_lpython_call_initial_functions(i32 %0, i8** %1) + call void @_lpython_set_argv(i32 %0, i8** %1) call void @__module___main_____main__global_stmts() ret i32 0 } -declare void @_lpython_call_initial_functions(i32, i8**) +declare void @_lpython_set_argv(i32, i8**) diff --git a/tests/reference/llvm-lpython1-23c5987.json b/tests/reference/llvm-lpython1-23c5987.json index f1aa41324a..326c58af5a 100644 --- a/tests/reference/llvm-lpython1-23c5987.json +++ b/tests/reference/llvm-lpython1-23c5987.json @@ -6,7 +6,7 @@ "outfile": null, "outfile_hash": null, "stdout": "llvm-lpython1-23c5987.stdout", - "stdout_hash": "de8886bdb5b86970a042b8ee00f309cf6bcf9e3e192cb4875ab3b2b0", + "stdout_hash": "15764832892f7e0cd2a438b247a148564f5f83b3a00ca929bd9cc625", "stderr": null, "stderr_hash": null, "returncode": 0 diff --git a/tests/reference/llvm-lpython1-23c5987.stdout b/tests/reference/llvm-lpython1-23c5987.stdout index 494dc5c091..084a225695 100644 --- a/tests/reference/llvm-lpython1-23c5987.stdout +++ b/tests/reference/llvm-lpython1-23c5987.stdout @@ -3,8 +3,8 @@ source_filename = "LFortran" define i32 @main(i32 %0, i8** %1) { .entry: - call void @_lpython_call_initial_functions(i32 %0, i8** %1) + call void @_lpython_set_argv(i32 %0, i8** %1) ret i32 0 } -declare void @_lpython_call_initial_functions(i32, i8**) +declare void @_lpython_set_argv(i32, i8**) diff --git a/tests/reference/llvm-print_04-443a8d8.json b/tests/reference/llvm-print_04-443a8d8.json index d2d3439fea..6edad74b2a 100644 --- a/tests/reference/llvm-print_04-443a8d8.json +++ b/tests/reference/llvm-print_04-443a8d8.json @@ -6,7 +6,7 @@ "outfile": null, "outfile_hash": null, "stdout": "llvm-print_04-443a8d8.stdout", - "stdout_hash": "95087a18862e89fbe34c93a49eef3683bc027bf02c47d41c27b9bc46", + "stdout_hash": "5fd7d7df606b54cd4d8304825a94448d366762055fdc5de73c61738c", "stderr": null, "stderr_hash": null, "returncode": 0 diff --git a/tests/reference/llvm-print_04-443a8d8.stdout b/tests/reference/llvm-print_04-443a8d8.stdout index b56c7c7bdd..520f8a3d65 100644 --- a/tests/reference/llvm-print_04-443a8d8.stdout +++ b/tests/reference/llvm-print_04-443a8d8.stdout @@ -38,9 +38,9 @@ declare void @_lfortran_printf(i8*, ...) define i32 @main(i32 %0, i8** %1) { .entry: - call void @_lpython_call_initial_functions(i32 %0, i8** %1) + call void @_lpython_set_argv(i32 %0, i8** %1) call void @__module___main_____main__global_stmts() ret i32 0 } -declare void @_lpython_call_initial_functions(i32, i8**) +declare void @_lpython_set_argv(i32, i8**) diff --git a/tests/reference/llvm-structs_11-09fea6a.json b/tests/reference/llvm-structs_11-09fea6a.json index 88e4e9adba..861941353b 100644 --- a/tests/reference/llvm-structs_11-09fea6a.json +++ b/tests/reference/llvm-structs_11-09fea6a.json @@ -6,7 +6,7 @@ "outfile": null, "outfile_hash": null, "stdout": "llvm-structs_11-09fea6a.stdout", - "stdout_hash": "b1de8efeefa8bb2d76ce4fcb13e049cd550cb2242189bec5d0003b80", + "stdout_hash": "c6cdeacf6cdb7b9a5e68d2263a28585e68ec51e11f544fd366eac428", "stderr": null, "stderr_hash": null, "returncode": 0 diff --git a/tests/reference/llvm-structs_11-09fea6a.stdout b/tests/reference/llvm-structs_11-09fea6a.stdout index bc78d40bab..c72ba9709d 100644 --- a/tests/reference/llvm-structs_11-09fea6a.stdout +++ b/tests/reference/llvm-structs_11-09fea6a.stdout @@ -36,10 +36,10 @@ declare void @_lfortran_printf(i8*, ...) define i32 @main(i32 %0, i8** %1) { .entry: - call void @_lpython_call_initial_functions(i32 %0, i8** %1) + call void @_lpython_set_argv(i32 %0, i8** %1) call void @__module___main_____main__global_init() call void @__module___main_____main__global_stmts() ret i32 0 } -declare void @_lpython_call_initial_functions(i32, i8**) +declare void @_lpython_set_argv(i32, i8**) diff --git a/tests/reference/llvm-test_issue_518-cdb641a.json b/tests/reference/llvm-test_issue_518-cdb641a.json index 574d643253..e11cc83f6d 100644 --- a/tests/reference/llvm-test_issue_518-cdb641a.json +++ b/tests/reference/llvm-test_issue_518-cdb641a.json @@ -6,7 +6,7 @@ "outfile": null, "outfile_hash": null, "stdout": "llvm-test_issue_518-cdb641a.stdout", - "stdout_hash": "923730d85df2dd4d88987ee03b085cc9035929493898dc8c99409dc6", + "stdout_hash": "61bea2762ce630ed6295649a1653e608a77cc1165f7575d28fdfefd1", "stderr": null, "stderr_hash": null, "returncode": 0 diff --git a/tests/reference/llvm-test_issue_518-cdb641a.stdout b/tests/reference/llvm-test_issue_518-cdb641a.stdout index 699d365c17..00236ee26f 100644 --- a/tests/reference/llvm-test_issue_518-cdb641a.stdout +++ b/tests/reference/llvm-test_issue_518-cdb641a.stdout @@ -113,9 +113,9 @@ declare void @exit(i32) define i32 @main(i32 %0, i8** %1) { .entry: - call void @_lpython_call_initial_functions(i32 %0, i8** %1) + call void @_lpython_set_argv(i32 %0, i8** %1) call void @__module___main_____main__global_stmts() ret i32 0 } -declare void @_lpython_call_initial_functions(i32, i8**) +declare void @_lpython_set_argv(i32, i8**) diff --git a/tests/reference/llvm-test_unary_op_03-046fb86.json b/tests/reference/llvm-test_unary_op_03-046fb86.json index 800d513680..d6390dde20 100644 --- a/tests/reference/llvm-test_unary_op_03-046fb86.json +++ b/tests/reference/llvm-test_unary_op_03-046fb86.json @@ -6,7 +6,7 @@ "outfile": null, "outfile_hash": null, "stdout": "llvm-test_unary_op_03-046fb86.stdout", - "stdout_hash": "8ae64ade26bcceb59c961b87142054ab443d47b4467569b01d9d24f9", + "stdout_hash": "1e9e596b5383d76430007e2e89893f64e5b07c21d46edeea5bd5acba", "stderr": null, "stderr_hash": null, "returncode": 0 diff --git a/tests/reference/llvm-test_unary_op_03-046fb86.stdout b/tests/reference/llvm-test_unary_op_03-046fb86.stdout index 7774aa0a9a..f460174a28 100644 --- a/tests/reference/llvm-test_unary_op_03-046fb86.stdout +++ b/tests/reference/llvm-test_unary_op_03-046fb86.stdout @@ -61,9 +61,9 @@ declare void @exit(i32) define i32 @main(i32 %0, i8** %1) { .entry: - call void @_lpython_call_initial_functions(i32 %0, i8** %1) + call void @_lpython_set_argv(i32 %0, i8** %1) call void @__module___main_____main__global_stmts() ret i32 0 } -declare void @_lpython_call_initial_functions(i32, i8**) +declare void @_lpython_set_argv(i32, i8**) diff --git a/tests/reference/llvm_dbg-expr_01-9fc5f30.json b/tests/reference/llvm_dbg-expr_01-9fc5f30.json index 649301a2b9..c139101c1d 100644 --- a/tests/reference/llvm_dbg-expr_01-9fc5f30.json +++ b/tests/reference/llvm_dbg-expr_01-9fc5f30.json @@ -6,7 +6,7 @@ "outfile": null, "outfile_hash": null, "stdout": "llvm_dbg-expr_01-9fc5f30.stdout", - "stdout_hash": "70643017f0ad204393988f111369cdd921c1c297149078182707cb54", + "stdout_hash": "f5424d14e2553fd4ea59a66c0d1560e435f0871cdfc5250f6a5df57d", "stderr": null, "stderr_hash": null, "returncode": 0 diff --git a/tests/reference/llvm_dbg-expr_01-9fc5f30.stdout b/tests/reference/llvm_dbg-expr_01-9fc5f30.stdout index 405da5aad9..c942af4f3a 100644 --- a/tests/reference/llvm_dbg-expr_01-9fc5f30.stdout +++ b/tests/reference/llvm_dbg-expr_01-9fc5f30.stdout @@ -40,12 +40,12 @@ declare void @_lfortran_printf(i8*, ...) define i32 @main(i32 %0, i8** %1) !dbg !22 { .entry: - call void @_lpython_call_initial_functions(i32 %0, i8** %1), !dbg !25 + call void @_lpython_set_argv(i32 %0, i8** %1), !dbg !25 call void @__module___main_____main__global_stmts(), !dbg !25 ret i32 0, !dbg !25 } -declare void @_lpython_call_initial_functions(i32, i8**) +declare void @_lpython_set_argv(i32, i8**) attributes #0 = { nounwind readnone speculatable willreturn } From 20b4ad6898cbb04b130a8eea5f58fc33a4e6dfa0 Mon Sep 17 00:00:00 2001 From: Saurabh Kumar Date: Sat, 23 Mar 2024 20:47:32 +0530 Subject: [PATCH 3/6] Tests: Update test references --- tests/reference/llvm-assert1-8df4f31.json | 2 +- tests/reference/llvm-assert1-8df4f31.stdout | 4 ++-- tests/reference/llvm-bindc_01-c984f09.json | 2 +- tests/reference/llvm-bindc_01-c984f09.stdout | 4 ++-- tests/reference/llvm-bool1-af4376b.json | 2 +- tests/reference/llvm-bool1-af4376b.stdout | 4 ++-- tests/reference/llvm-expr14-b96b5b1.json | 2 +- tests/reference/llvm-expr14-b96b5b1.stdout | 4 ++-- tests/reference/llvm-expr_01-54467c1.json | 2 +- tests/reference/llvm-expr_01-54467c1.stdout | 4 ++-- tests/reference/llvm-func_inline_01-2d4583a.json | 2 +- tests/reference/llvm-func_inline_01-2d4583a.stdout | 4 ++-- tests/reference/llvm-lpython1-23c5987.json | 2 +- tests/reference/llvm-lpython1-23c5987.stdout | 4 ++-- tests/reference/llvm-print_04-443a8d8.json | 2 +- tests/reference/llvm-print_04-443a8d8.stdout | 4 ++-- tests/reference/llvm-structs_11-09fea6a.json | 2 +- tests/reference/llvm-structs_11-09fea6a.stdout | 4 ++-- tests/reference/llvm-test_issue_518-cdb641a.json | 2 +- tests/reference/llvm-test_issue_518-cdb641a.stdout | 4 ++-- tests/reference/llvm-test_unary_op_03-046fb86.json | 2 +- tests/reference/llvm-test_unary_op_03-046fb86.stdout | 4 ++-- tests/reference/llvm_dbg-expr_01-9fc5f30.json | 2 +- tests/reference/llvm_dbg-expr_01-9fc5f30.stdout | 4 ++-- 24 files changed, 36 insertions(+), 36 deletions(-) diff --git a/tests/reference/llvm-assert1-8df4f31.json b/tests/reference/llvm-assert1-8df4f31.json index f7af1f27c3..d280f55589 100644 --- a/tests/reference/llvm-assert1-8df4f31.json +++ b/tests/reference/llvm-assert1-8df4f31.json @@ -6,7 +6,7 @@ "outfile": null, "outfile_hash": null, "stdout": "llvm-assert1-8df4f31.stdout", - "stdout_hash": "15764832892f7e0cd2a438b247a148564f5f83b3a00ca929bd9cc625", + "stdout_hash": "de8886bdb5b86970a042b8ee00f309cf6bcf9e3e192cb4875ab3b2b0", "stderr": null, "stderr_hash": null, "returncode": 0 diff --git a/tests/reference/llvm-assert1-8df4f31.stdout b/tests/reference/llvm-assert1-8df4f31.stdout index 084a225695..494dc5c091 100644 --- a/tests/reference/llvm-assert1-8df4f31.stdout +++ b/tests/reference/llvm-assert1-8df4f31.stdout @@ -3,8 +3,8 @@ source_filename = "LFortran" define i32 @main(i32 %0, i8** %1) { .entry: - call void @_lpython_set_argv(i32 %0, i8** %1) + call void @_lpython_call_initial_functions(i32 %0, i8** %1) ret i32 0 } -declare void @_lpython_set_argv(i32, i8**) +declare void @_lpython_call_initial_functions(i32, i8**) diff --git a/tests/reference/llvm-bindc_01-c984f09.json b/tests/reference/llvm-bindc_01-c984f09.json index b8bf60feb9..d49cc35592 100644 --- a/tests/reference/llvm-bindc_01-c984f09.json +++ b/tests/reference/llvm-bindc_01-c984f09.json @@ -6,7 +6,7 @@ "outfile": null, "outfile_hash": null, "stdout": "llvm-bindc_01-c984f09.stdout", - "stdout_hash": "36302aceabcf2682f3e954ab4bc56dd960fe532dc7799cb58baa19a3", + "stdout_hash": "054106835033c19d6d0b10c264d915a4d4b11fee2a70abd6d66bade3", "stderr": null, "stderr_hash": null, "returncode": 0 diff --git a/tests/reference/llvm-bindc_01-c984f09.stdout b/tests/reference/llvm-bindc_01-c984f09.stdout index 16f056eec7..f5c2dbbbe4 100644 --- a/tests/reference/llvm-bindc_01-c984f09.stdout +++ b/tests/reference/llvm-bindc_01-c984f09.stdout @@ -73,9 +73,9 @@ declare void @exit(i32) define i32 @main(i32 %0, i8** %1) { .entry: - call void @_lpython_set_argv(i32 %0, i8** %1) + call void @_lpython_call_initial_functions(i32 %0, i8** %1) call void @__module___main_____main__global_stmts() ret i32 0 } -declare void @_lpython_set_argv(i32, i8**) +declare void @_lpython_call_initial_functions(i32, i8**) diff --git a/tests/reference/llvm-bool1-af4376b.json b/tests/reference/llvm-bool1-af4376b.json index 8a924e4972..446f579e9f 100644 --- a/tests/reference/llvm-bool1-af4376b.json +++ b/tests/reference/llvm-bool1-af4376b.json @@ -6,7 +6,7 @@ "outfile": null, "outfile_hash": null, "stdout": "llvm-bool1-af4376b.stdout", - "stdout_hash": "cb60cdc2beb220bbe693b54079b5ebc7efcdc2cdc830c3cc0e213c39", + "stdout_hash": "7c68133cc3f970d6eddca6cf982fb405b5a1c8014ef5aa916ea38cf6", "stderr": null, "stderr_hash": null, "returncode": 0 diff --git a/tests/reference/llvm-bool1-af4376b.stdout b/tests/reference/llvm-bool1-af4376b.stdout index 67423eab3e..630d17250f 100644 --- a/tests/reference/llvm-bool1-af4376b.stdout +++ b/tests/reference/llvm-bool1-af4376b.stdout @@ -56,9 +56,9 @@ declare void @_lfortran_printf(i8*, ...) define i32 @main(i32 %0, i8** %1) { .entry: - call void @_lpython_set_argv(i32 %0, i8** %1) + call void @_lpython_call_initial_functions(i32 %0, i8** %1) call void @__module___main_____main__global_stmts() ret i32 0 } -declare void @_lpython_set_argv(i32, i8**) +declare void @_lpython_call_initial_functions(i32, i8**) diff --git a/tests/reference/llvm-expr14-b96b5b1.json b/tests/reference/llvm-expr14-b96b5b1.json index a3c6d2f1be..f94838f361 100644 --- a/tests/reference/llvm-expr14-b96b5b1.json +++ b/tests/reference/llvm-expr14-b96b5b1.json @@ -6,7 +6,7 @@ "outfile": null, "outfile_hash": null, "stdout": "llvm-expr14-b96b5b1.stdout", - "stdout_hash": "15764832892f7e0cd2a438b247a148564f5f83b3a00ca929bd9cc625", + "stdout_hash": "de8886bdb5b86970a042b8ee00f309cf6bcf9e3e192cb4875ab3b2b0", "stderr": null, "stderr_hash": null, "returncode": 0 diff --git a/tests/reference/llvm-expr14-b96b5b1.stdout b/tests/reference/llvm-expr14-b96b5b1.stdout index 084a225695..494dc5c091 100644 --- a/tests/reference/llvm-expr14-b96b5b1.stdout +++ b/tests/reference/llvm-expr14-b96b5b1.stdout @@ -3,8 +3,8 @@ source_filename = "LFortran" define i32 @main(i32 %0, i8** %1) { .entry: - call void @_lpython_set_argv(i32 %0, i8** %1) + call void @_lpython_call_initial_functions(i32 %0, i8** %1) ret i32 0 } -declare void @_lpython_set_argv(i32, i8**) +declare void @_lpython_call_initial_functions(i32, i8**) diff --git a/tests/reference/llvm-expr_01-54467c1.json b/tests/reference/llvm-expr_01-54467c1.json index f3c32d129d..2c12ec9785 100644 --- a/tests/reference/llvm-expr_01-54467c1.json +++ b/tests/reference/llvm-expr_01-54467c1.json @@ -6,7 +6,7 @@ "outfile": null, "outfile_hash": null, "stdout": "llvm-expr_01-54467c1.stdout", - "stdout_hash": "8018bddb16bb05f28f77e84b0c4bb63a5515c75d5fee087543a243b5", + "stdout_hash": "951a792984bf209b37aafc95435eb319906b5c9cb22a62a018556f06", "stderr": null, "stderr_hash": null, "returncode": 0 diff --git a/tests/reference/llvm-expr_01-54467c1.stdout b/tests/reference/llvm-expr_01-54467c1.stdout index 1eb63578bf..e4b4598e72 100644 --- a/tests/reference/llvm-expr_01-54467c1.stdout +++ b/tests/reference/llvm-expr_01-54467c1.stdout @@ -33,9 +33,9 @@ declare void @_lfortran_printf(i8*, ...) define i32 @main(i32 %0, i8** %1) { .entry: - call void @_lpython_set_argv(i32 %0, i8** %1) + call void @_lpython_call_initial_functions(i32 %0, i8** %1) call void @__module___main_____main__global_stmts() ret i32 0 } -declare void @_lpython_set_argv(i32, i8**) +declare void @_lpython_call_initial_functions(i32, i8**) diff --git a/tests/reference/llvm-func_inline_01-2d4583a.json b/tests/reference/llvm-func_inline_01-2d4583a.json index 075a1dfc5f..60381a81be 100644 --- a/tests/reference/llvm-func_inline_01-2d4583a.json +++ b/tests/reference/llvm-func_inline_01-2d4583a.json @@ -6,7 +6,7 @@ "outfile": null, "outfile_hash": null, "stdout": "llvm-func_inline_01-2d4583a.stdout", - "stdout_hash": "a91f2155136dbc019a41e5b1006d9b4a9e1f7def08086e307aafd15c", + "stdout_hash": "3d0670fb3a5502d046ad0acaa0b5d0f06cd05285df45bef0eca0b626", "stderr": null, "stderr_hash": null, "returncode": 0 diff --git a/tests/reference/llvm-func_inline_01-2d4583a.stdout b/tests/reference/llvm-func_inline_01-2d4583a.stdout index ec43646d47..9c38b8e90a 100644 --- a/tests/reference/llvm-func_inline_01-2d4583a.stdout +++ b/tests/reference/llvm-func_inline_01-2d4583a.stdout @@ -92,9 +92,9 @@ declare void @exit(i32) define i32 @main(i32 %0, i8** %1) { .entry: - call void @_lpython_set_argv(i32 %0, i8** %1) + call void @_lpython_call_initial_functions(i32 %0, i8** %1) call void @__module___main_____main__global_stmts() ret i32 0 } -declare void @_lpython_set_argv(i32, i8**) +declare void @_lpython_call_initial_functions(i32, i8**) diff --git a/tests/reference/llvm-lpython1-23c5987.json b/tests/reference/llvm-lpython1-23c5987.json index 326c58af5a..f1aa41324a 100644 --- a/tests/reference/llvm-lpython1-23c5987.json +++ b/tests/reference/llvm-lpython1-23c5987.json @@ -6,7 +6,7 @@ "outfile": null, "outfile_hash": null, "stdout": "llvm-lpython1-23c5987.stdout", - "stdout_hash": "15764832892f7e0cd2a438b247a148564f5f83b3a00ca929bd9cc625", + "stdout_hash": "de8886bdb5b86970a042b8ee00f309cf6bcf9e3e192cb4875ab3b2b0", "stderr": null, "stderr_hash": null, "returncode": 0 diff --git a/tests/reference/llvm-lpython1-23c5987.stdout b/tests/reference/llvm-lpython1-23c5987.stdout index 084a225695..494dc5c091 100644 --- a/tests/reference/llvm-lpython1-23c5987.stdout +++ b/tests/reference/llvm-lpython1-23c5987.stdout @@ -3,8 +3,8 @@ source_filename = "LFortran" define i32 @main(i32 %0, i8** %1) { .entry: - call void @_lpython_set_argv(i32 %0, i8** %1) + call void @_lpython_call_initial_functions(i32 %0, i8** %1) ret i32 0 } -declare void @_lpython_set_argv(i32, i8**) +declare void @_lpython_call_initial_functions(i32, i8**) diff --git a/tests/reference/llvm-print_04-443a8d8.json b/tests/reference/llvm-print_04-443a8d8.json index 6edad74b2a..d2d3439fea 100644 --- a/tests/reference/llvm-print_04-443a8d8.json +++ b/tests/reference/llvm-print_04-443a8d8.json @@ -6,7 +6,7 @@ "outfile": null, "outfile_hash": null, "stdout": "llvm-print_04-443a8d8.stdout", - "stdout_hash": "5fd7d7df606b54cd4d8304825a94448d366762055fdc5de73c61738c", + "stdout_hash": "95087a18862e89fbe34c93a49eef3683bc027bf02c47d41c27b9bc46", "stderr": null, "stderr_hash": null, "returncode": 0 diff --git a/tests/reference/llvm-print_04-443a8d8.stdout b/tests/reference/llvm-print_04-443a8d8.stdout index 520f8a3d65..b56c7c7bdd 100644 --- a/tests/reference/llvm-print_04-443a8d8.stdout +++ b/tests/reference/llvm-print_04-443a8d8.stdout @@ -38,9 +38,9 @@ declare void @_lfortran_printf(i8*, ...) define i32 @main(i32 %0, i8** %1) { .entry: - call void @_lpython_set_argv(i32 %0, i8** %1) + call void @_lpython_call_initial_functions(i32 %0, i8** %1) call void @__module___main_____main__global_stmts() ret i32 0 } -declare void @_lpython_set_argv(i32, i8**) +declare void @_lpython_call_initial_functions(i32, i8**) diff --git a/tests/reference/llvm-structs_11-09fea6a.json b/tests/reference/llvm-structs_11-09fea6a.json index 861941353b..88e4e9adba 100644 --- a/tests/reference/llvm-structs_11-09fea6a.json +++ b/tests/reference/llvm-structs_11-09fea6a.json @@ -6,7 +6,7 @@ "outfile": null, "outfile_hash": null, "stdout": "llvm-structs_11-09fea6a.stdout", - "stdout_hash": "c6cdeacf6cdb7b9a5e68d2263a28585e68ec51e11f544fd366eac428", + "stdout_hash": "b1de8efeefa8bb2d76ce4fcb13e049cd550cb2242189bec5d0003b80", "stderr": null, "stderr_hash": null, "returncode": 0 diff --git a/tests/reference/llvm-structs_11-09fea6a.stdout b/tests/reference/llvm-structs_11-09fea6a.stdout index c72ba9709d..bc78d40bab 100644 --- a/tests/reference/llvm-structs_11-09fea6a.stdout +++ b/tests/reference/llvm-structs_11-09fea6a.stdout @@ -36,10 +36,10 @@ declare void @_lfortran_printf(i8*, ...) define i32 @main(i32 %0, i8** %1) { .entry: - call void @_lpython_set_argv(i32 %0, i8** %1) + call void @_lpython_call_initial_functions(i32 %0, i8** %1) call void @__module___main_____main__global_init() call void @__module___main_____main__global_stmts() ret i32 0 } -declare void @_lpython_set_argv(i32, i8**) +declare void @_lpython_call_initial_functions(i32, i8**) diff --git a/tests/reference/llvm-test_issue_518-cdb641a.json b/tests/reference/llvm-test_issue_518-cdb641a.json index e11cc83f6d..574d643253 100644 --- a/tests/reference/llvm-test_issue_518-cdb641a.json +++ b/tests/reference/llvm-test_issue_518-cdb641a.json @@ -6,7 +6,7 @@ "outfile": null, "outfile_hash": null, "stdout": "llvm-test_issue_518-cdb641a.stdout", - "stdout_hash": "61bea2762ce630ed6295649a1653e608a77cc1165f7575d28fdfefd1", + "stdout_hash": "923730d85df2dd4d88987ee03b085cc9035929493898dc8c99409dc6", "stderr": null, "stderr_hash": null, "returncode": 0 diff --git a/tests/reference/llvm-test_issue_518-cdb641a.stdout b/tests/reference/llvm-test_issue_518-cdb641a.stdout index 00236ee26f..699d365c17 100644 --- a/tests/reference/llvm-test_issue_518-cdb641a.stdout +++ b/tests/reference/llvm-test_issue_518-cdb641a.stdout @@ -113,9 +113,9 @@ declare void @exit(i32) define i32 @main(i32 %0, i8** %1) { .entry: - call void @_lpython_set_argv(i32 %0, i8** %1) + call void @_lpython_call_initial_functions(i32 %0, i8** %1) call void @__module___main_____main__global_stmts() ret i32 0 } -declare void @_lpython_set_argv(i32, i8**) +declare void @_lpython_call_initial_functions(i32, i8**) diff --git a/tests/reference/llvm-test_unary_op_03-046fb86.json b/tests/reference/llvm-test_unary_op_03-046fb86.json index d6390dde20..800d513680 100644 --- a/tests/reference/llvm-test_unary_op_03-046fb86.json +++ b/tests/reference/llvm-test_unary_op_03-046fb86.json @@ -6,7 +6,7 @@ "outfile": null, "outfile_hash": null, "stdout": "llvm-test_unary_op_03-046fb86.stdout", - "stdout_hash": "1e9e596b5383d76430007e2e89893f64e5b07c21d46edeea5bd5acba", + "stdout_hash": "8ae64ade26bcceb59c961b87142054ab443d47b4467569b01d9d24f9", "stderr": null, "stderr_hash": null, "returncode": 0 diff --git a/tests/reference/llvm-test_unary_op_03-046fb86.stdout b/tests/reference/llvm-test_unary_op_03-046fb86.stdout index f460174a28..7774aa0a9a 100644 --- a/tests/reference/llvm-test_unary_op_03-046fb86.stdout +++ b/tests/reference/llvm-test_unary_op_03-046fb86.stdout @@ -61,9 +61,9 @@ declare void @exit(i32) define i32 @main(i32 %0, i8** %1) { .entry: - call void @_lpython_set_argv(i32 %0, i8** %1) + call void @_lpython_call_initial_functions(i32 %0, i8** %1) call void @__module___main_____main__global_stmts() ret i32 0 } -declare void @_lpython_set_argv(i32, i8**) +declare void @_lpython_call_initial_functions(i32, i8**) diff --git a/tests/reference/llvm_dbg-expr_01-9fc5f30.json b/tests/reference/llvm_dbg-expr_01-9fc5f30.json index c139101c1d..649301a2b9 100644 --- a/tests/reference/llvm_dbg-expr_01-9fc5f30.json +++ b/tests/reference/llvm_dbg-expr_01-9fc5f30.json @@ -6,7 +6,7 @@ "outfile": null, "outfile_hash": null, "stdout": "llvm_dbg-expr_01-9fc5f30.stdout", - "stdout_hash": "f5424d14e2553fd4ea59a66c0d1560e435f0871cdfc5250f6a5df57d", + "stdout_hash": "70643017f0ad204393988f111369cdd921c1c297149078182707cb54", "stderr": null, "stderr_hash": null, "returncode": 0 diff --git a/tests/reference/llvm_dbg-expr_01-9fc5f30.stdout b/tests/reference/llvm_dbg-expr_01-9fc5f30.stdout index c942af4f3a..405da5aad9 100644 --- a/tests/reference/llvm_dbg-expr_01-9fc5f30.stdout +++ b/tests/reference/llvm_dbg-expr_01-9fc5f30.stdout @@ -40,12 +40,12 @@ declare void @_lfortran_printf(i8*, ...) define i32 @main(i32 %0, i8** %1) !dbg !22 { .entry: - call void @_lpython_set_argv(i32 %0, i8** %1), !dbg !25 + call void @_lpython_call_initial_functions(i32 %0, i8** %1), !dbg !25 call void @__module___main_____main__global_stmts(), !dbg !25 ret i32 0, !dbg !25 } -declare void @_lpython_set_argv(i32, i8**) +declare void @_lpython_call_initial_functions(i32, i8**) attributes #0 = { nounwind readnone speculatable willreturn } From c23b1c82bc0c3511bf88c4c8c3e36eb4da98fcf8 Mon Sep 17 00:00:00 2001 From: Saurabh Kumar <151380951+kmr-srbh@users.noreply.github.com> Date: Sat, 23 Mar 2024 21:10:49 +0530 Subject: [PATCH 4/6] Remove trailing whitespace Co-authored-by: Shaikh Ubaid --- integration_tests/test_list_item_mixed_print.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/integration_tests/test_list_item_mixed_print.py b/integration_tests/test_list_item_mixed_print.py index 5511aa737a..84ed437ba5 100644 --- a/integration_tests/test_list_item_mixed_print.py +++ b/integration_tests/test_list_item_mixed_print.py @@ -40,6 +40,4 @@ def test_list_item_mixed_print(): for i in range(len(n_list)): print("List ", i, ":", n_list[i]) -test_list_item_mixed_print() - - \ No newline at end of file +test_list_item_mixed_print() \ No newline at end of file From 4baad5e5189017fb80acf74b78d39a681ee906c7 Mon Sep 17 00:00:00 2001 From: Saurabh Kumar <151380951+kmr-srbh@users.noreply.github.com> Date: Sat, 23 Mar 2024 21:14:44 +0530 Subject: [PATCH 5/6] Simplify statement Co-authored-by: Shaikh Ubaid --- src/libasr/pass/replace_symbolic.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/libasr/pass/replace_symbolic.cpp b/src/libasr/pass/replace_symbolic.cpp index ddb43b1392..c263ea444c 100644 --- a/src/libasr/pass/replace_symbolic.cpp +++ b/src/libasr/pass/replace_symbolic.cpp @@ -843,10 +843,7 @@ class ReplaceSymbolicVisitor : public PassUtils::PassVisitorm_a, list_item->m_pos, - ASRUtils::expr_type(val), nullptr)); - print_tmp.push_back(value); + print_tmp.push_back(val); } } else { print_tmp.push_back(x.m_values[i]); From 09c688bfd54fbec8d0489a61aafdb8e82634ba0b Mon Sep 17 00:00:00 2001 From: Saurabh Kumar Date: Sat, 23 Mar 2024 23:06:45 +0530 Subject: [PATCH 6/6] Tests: Update test and test references --- integration_tests/test_list_item_mixed_print.py | 1 + ...runtime-test_list_item_mixed_print-a3fd49f.json | 13 +++++++++++++ ...ntime-test_list_item_mixed_print-a3fd49f.stdout | 14 ++++++++++++++ tests/tests.toml | 4 ++++ 4 files changed, 32 insertions(+) create mode 100644 tests/reference/runtime-test_list_item_mixed_print-a3fd49f.json create mode 100644 tests/reference/runtime-test_list_item_mixed_print-a3fd49f.stdout diff --git a/integration_tests/test_list_item_mixed_print.py b/integration_tests/test_list_item_mixed_print.py index 84ed437ba5..10fdc32b75 100644 --- a/integration_tests/test_list_item_mixed_print.py +++ b/integration_tests/test_list_item_mixed_print.py @@ -35,6 +35,7 @@ def test_list_item_mixed_print(): i: i32 for i in range(len(i_list)): print(i_list[i], end=" # ") + print("\n") n_list: list[list[i32]] = [[1, 2], [3, 4], [5, 6]] for i in range(len(n_list)): diff --git a/tests/reference/runtime-test_list_item_mixed_print-a3fd49f.json b/tests/reference/runtime-test_list_item_mixed_print-a3fd49f.json new file mode 100644 index 0000000000..d580243c7b --- /dev/null +++ b/tests/reference/runtime-test_list_item_mixed_print-a3fd49f.json @@ -0,0 +1,13 @@ +{ + "basename": "runtime-test_list_item_mixed_print-a3fd49f", + "cmd": "lpython {infile}", + "infile": "tests/../integration_tests/test_list_item_mixed_print.py", + "infile_hash": "14ce4950ca0ff6c6f610df787ad8d260148866f4c7062ab0b856ec5a", + "outfile": null, + "outfile_hash": null, + "stdout": "runtime-test_list_item_mixed_print-a3fd49f.stdout", + "stdout_hash": "cffcdb43864ef4e234dec5a10923f9077b7c6d1f4d9c37df1882f375", + "stderr": null, + "stderr_hash": null, + "returncode": 0 +} \ No newline at end of file diff --git a/tests/reference/runtime-test_list_item_mixed_print-a3fd49f.stdout b/tests/reference/runtime-test_list_item_mixed_print-a3fd49f.stdout new file mode 100644 index 0000000000..8659fad42d --- /dev/null +++ b/tests/reference/runtime-test_list_item_mixed_print-a3fd49f.stdout @@ -0,0 +1,14 @@ + Hello +This is LPython +1 2 3 ... 3 4 5 +The first element is: 1 +The middle element is: 3 +3.14000000000000012e+00 * 2 = 6.28000000000000025e+00 +Total: 9.41999999999999993e+00 +(1, 2, 3) is a tuple, but 1 is a number. +1 is smaller than 2 is smaller than 3 +1 # 2 # 3 # 4 # 5 # + +List 0 : [1, 2] +List 1 : [3, 4] +List 2 : [5, 6] diff --git a/tests/tests.toml b/tests/tests.toml index 0ea59119d2..0c22c94aec 100644 --- a/tests/tests.toml +++ b/tests/tests.toml @@ -461,6 +461,10 @@ pass = "print_list_tuple" filename = "../integration_tests/print_04.py" llvm = true +[[test]] +filename = "../integration_tests/test_list_item_mixed_print.py" +run = true + [[test]] filename = "../integration_tests/generics_01.py" asr = true