Skip to content

Commit ff9e6db

Browse files
updated reference tests
1 parent 0b4bfe2 commit ff9e6db

File tree

4 files changed

+22
-32
lines changed

4 files changed

+22
-32
lines changed

tests/reference/llvm-structs_11-09fea6a.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"outfile": null,
77
"outfile_hash": null,
88
"stdout": "llvm-structs_11-09fea6a.stdout",
9-
"stdout_hash": "b1de8efeefa8bb2d76ce4fcb13e049cd550cb2242189bec5d0003b80",
9+
"stdout_hash": "5257bcde84f3ca956bdf8ce0d0dcffab462418097139e577b06748a3",
1010
"stderr": null,
1111
"stderr_hash": null,
1212
"returncode": 0

tests/reference/llvm-structs_11-09fea6a.stdout

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,6 @@ source_filename = "LFortran"
1212
@4 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
1313
@5 = private unnamed_addr constant [5 x i8] c"%d%s\00", align 1
1414

15-
define void @__module___main_____main__global_init() {
16-
.entry:
17-
br label %return
18-
19-
return: ; preds = %.entry
20-
ret void
21-
}
22-
2315
define void @__module___main_____main__global_stmts() {
2416
.entry:
2517
%0 = load i32, i32* getelementptr inbounds (%Bar, %Bar* @bar, i32 0, i32 0, i32 0), align 4
@@ -37,7 +29,6 @@ declare void @_lfortran_printf(i8*, ...)
3729
define i32 @main(i32 %0, i8** %1) {
3830
.entry:
3931
call void @_lpython_call_initial_functions(i32 %0, i8** %1)
40-
call void @__module___main_____main__global_init()
4132
call void @__module___main_____main__global_stmts()
4233
ret i32 0
4334
}

tests/reference/python-test_aggregate_constants-26c89d6.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"outfile": null,
77
"outfile_hash": null,
88
"stdout": "python-test_aggregate_constants-26c89d6.stdout",
9-
"stdout_hash": "3d5fa791404534643f6f2a096b2bc1561cf6c03a78d060b79df4f17b",
9+
"stdout_hash": "615052b21f411decc56105bba5b9b1286e369c3da614dddfcaa6e3a2",
1010
"stderr": null,
1111
"stderr_hash": null,
1212
"returncode": 0

tests/reference/python-test_aggregate_constants-26c89d6.stdout

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,43 @@
1-
def __main__global_init():
2-
my_first_list = [1, 2, 3, 4]
3-
my_second_list = ["a", "b", "c", "d"]
4-
my_third_list = [[1, 2], [3, 4], [5, 6]]
5-
my_fourth_list = [[1.000000, 2.200000], [3.600000, 4.900000], [5.100000, 6.300000]]
6-
my_fifth_list = [{"a", "b"}, {"c", "d"}]
7-
my_sixth_list = [(1, "a"), (2, "b")]
8-
my_first_tuple = (1, "hello", 2.400000)
9-
my_second_tuple = ((1, "hello"), "world")
10-
my_third_tuple = (["hello", "world"], "world")
11-
my_fourth_tuple = ({"hello", "world"}, "world")
12-
my_first_set = {1, 2, 3, 2, 4}
13-
my_second_set = {1.100000, 2.500000, 6.800000}
14-
my_third_set = {"a", "b", "a", "c"}
15-
my_fourth_set = {(1, "a"), (2, "b"), (3, "c")}
16-
my_first_dict = {"a": 1, "b": 2, "c": 3}
17-
my_second_dict = {1: 1.330000, 2: 2.330000, 3: 3.330000}
18-
my_third_dict = {"a": "A", "b": "B", "c": "C"}
19-
my_fourth_dict = {1: (1.200000, 4.500000), 2: (3.600000, 9.200000)}
20-
my_fifth_dict = {"list1": [1, 2, 3], "list2": [4, 5, 6]}
21-
my_sixth_dict = {"set1": {1, 2, 1}, "set2": {4, 1, 2}}
221
def __main__global_stmts():
2+
my_first_list = [1, 2, 3, 4]
233
print(my_first_list)
4+
my_second_list = ["a", "b", "c", "d"]
245
print(my_second_list)
6+
my_third_list = [[1, 2], [3, 4], [5, 6]]
257
print(my_third_list)
8+
my_fourth_list = [[1.000000, 2.200000], [3.600000, 4.900000], [5.100000, 6.300000]]
269
print(my_fourth_list)
10+
my_fifth_list = [{"a", "b"}, {"c", "d"}]
2711
print(my_fifth_list)
12+
my_sixth_list = [(1, "a"), (2, "b")]
2813
print(my_sixth_list)
14+
my_first_tuple = (1, "hello", 2.400000)
2915
print(my_first_tuple)
16+
my_second_tuple = ((1, "hello"), "world")
3017
print(my_second_tuple)
18+
my_third_tuple = (["hello", "world"], "world")
3119
print(my_third_tuple)
20+
my_fourth_tuple = ({"hello", "world"}, "world")
3221
print(my_fourth_tuple)
22+
my_first_set = {1, 2, 3, 2, 4}
3323
print(my_first_set)
24+
my_second_set = {1.100000, 2.500000, 6.800000}
3425
print(my_second_set)
26+
my_third_set = {"a", "b", "a", "c"}
3527
print(my_third_set)
28+
my_fourth_set = {(1, "a"), (2, "b"), (3, "c")}
3629
print(my_fourth_set)
30+
my_first_dict = {"a": 1, "b": 2, "c": 3}
3731
print(my_first_dict)
32+
my_second_dict = {1: 1.330000, 2: 2.330000, 3: 3.330000}
3833
print(my_second_dict)
34+
my_third_dict = {"a": "A", "b": "B", "c": "C"}
3935
print(my_third_dict)
36+
my_fourth_dict = {1: (1.200000, 4.500000), 2: (3.600000, 9.200000)}
4037
print(my_fourth_dict)
38+
my_fifth_dict = {"list1": [1, 2, 3], "list2": [4, 5, 6]}
4139
print(my_fifth_dict)
40+
my_sixth_dict = {"set1": {1, 2, 1}, "set2": {4, 1, 2}}
4241
print(my_sixth_dict)
4342
fn()
4443
def fn():

0 commit comments

Comments
 (0)