Skip to content

Commit 4874042

Browse files
committed
Updated reference tests
1 parent 946932a commit 4874042

10 files changed

+27
-29
lines changed

tests/reference/asr-generics_01-d616074.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": "asr-generics_01-d616074.stdout",
9-
"stdout_hash": "dfabe5a70a7f43494584ff8aeda7b7c86ed518fae456658f1f534daf",
9+
"stdout_hash": "a86dbbc3855a11fac0c305599cd98e368c31b0fc172e78dfc1fe484b",
1010
"stderr": null,
1111
"stderr_hash": null,
1212
"returncode": 0

tests/reference/asr-generics_01-d616074.stdout

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
.false.
9393
.false.
9494
.false.
95-
[]
95+
[2 add]
9696
.false.
9797
)
9898
[add_integer]
@@ -185,7 +185,7 @@
185185
.false.
186186
.false.
187187
.false.
188-
[]
188+
[2 add]
189189
.false.
190190
)
191191
[add_string]

tests/reference/asr-generics_array_02-22c8dc1.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": "asr-generics_array_02-22c8dc1.stdout",
9-
"stdout_hash": "2132824b968d01dc0f0c0943bbdeb17e3c6a04caf2775065a397e1b2",
9+
"stdout_hash": "d128fe83fd89823c14327513eda9881dd56fb771acc0f0962cf42163",
1010
"stderr": null,
1111
"stderr_hash": null,
1212
"returncode": 0

tests/reference/asr-generics_array_02-22c8dc1.stdout

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@
158158
.false.
159159
.false.
160160
.false.
161-
[]
161+
[2 add]
162162
.false.
163163
)
164164
[add_integer]
@@ -170,9 +170,7 @@
170170
(ArrayConstant
171171
[]
172172
(Array
173-
(TypeParameter
174-
T
175-
)
173+
(Integer 4)
176174
[((IntegerConstant 0 (Integer 4))
177175
(Var 206 n))]
178176
PointerToDataArray
@@ -384,7 +382,7 @@
384382
.false.
385383
.false.
386384
.false.
387-
[]
385+
[2 add]
388386
.false.
389387
)
390388
[add_float]
@@ -396,9 +394,7 @@
396394
(ArrayConstant
397395
[]
398396
(Array
399-
(TypeParameter
400-
T
401-
)
397+
(Real 4)
402398
[((IntegerConstant 0 (Integer 4))
403399
(Var 207 n))]
404400
PointerToDataArray

tests/reference/asr-generics_array_03-fb3706c.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": "asr-generics_array_03-fb3706c.stdout",
9-
"stdout_hash": "34635ce31c2595c83083daa522e86fa0b4fa7e1b9916dfa49808583f",
9+
"stdout_hash": "871f0e298031815ca0a9988f6bae910350bec1f086c07179d67056f8",
1010
"stderr": null,
1111
"stderr_hash": null,
1212
"returncode": 0

tests/reference/asr-generics_array_03-fb3706c.stdout

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@
251251
.false.
252252
.false.
253253
.false.
254-
[]
254+
[2 add]
255255
.false.
256256
)
257257
[add_integer]
@@ -264,9 +264,7 @@
264264
(ArrayConstant
265265
[]
266266
(Array
267-
(TypeParameter
268-
T
269-
)
267+
(Integer 4)
270268
[((IntegerConstant 0 (Integer 4))
271269
(Var 207 n))
272270
((IntegerConstant 0 (Integer 4))
@@ -598,7 +596,7 @@
598596
.false.
599597
.false.
600598
.false.
601-
[]
599+
[2 add]
602600
.false.
603601
)
604602
[add_float]
@@ -611,9 +609,7 @@
611609
(ArrayConstant
612610
[]
613611
(Array
614-
(TypeParameter
615-
T
616-
)
612+
(Real 4)
617613
[((IntegerConstant 0 (Integer 4))
618614
(Var 208 n))
619615
((IntegerConstant 0 (Integer 4))

tests/reference/asr-generics_list_01-39c4044.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": "asr-generics_list_01-39c4044.stdout",
9-
"stdout_hash": "d53f6f826430b0aa861db8f7932cdd9f24d61cddb7527ad97b61b595",
9+
"stdout_hash": "1b67e64b1337c59fb1f94f0afe307382c49ce404d59e61fc657c5225",
1010
"stderr": null,
1111
"stderr_hash": null,
1212
"returncode": 0

tests/reference/asr-generics_list_01-39c4044.stdout

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,9 @@
127127
.false.
128128
.false.
129129
.false.
130-
[]
130+
[2 zero
131+
2 add
132+
2 div]
131133
.false.
132134
)
133135
[empty_integer
@@ -332,7 +334,9 @@
332334
.false.
333335
.false.
334336
.false.
335-
[]
337+
[2 zero
338+
2 add
339+
2 div]
336340
.false.
337341
)
338342
[empty_float
@@ -537,7 +541,9 @@
537541
.false.
538542
.false.
539543
.false.
540-
[]
544+
[2 zero
545+
2 add
546+
2 div]
541547
.false.
542548
)
543549
[empty_string

tests/reference/c-expr7-bb2692a.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": "c-expr7-bb2692a.stdout",
9-
"stdout_hash": "241378f1e16504e72b5ed9ad7fc0fa88ecfafb0373b545bf381a9397",
9+
"stdout_hash": "ececd8c62f36ab66bcc547523a4bee531ba6486039406403575df595",
1010
"stderr": "c-expr7-bb2692a.stderr",
1111
"stderr_hash": "6e9790ac88db1a9ead8f64a91ba8a6605de67167037908a74b77be0c",
1212
"returncode": 0

tests/reference/c-expr7-bb2692a.stdout

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ double __lpython_overloaded_0__pow(int32_t x, int32_t y)
2323
return _lpython_return_variable;
2424
}
2525

26-
float _lfortran_caimag(float_complex_t x);
26+
float _lfortran_caimag(float complex x);
2727

28-
double _lfortran_zaimag(double_complex_t x);
28+
double _lfortran_zaimag(double complex x);
2929

3030
void test_pow()
3131
{
3232
int32_t a;
33-
a = (int32_t)(__lpython_overloaded_0__pow(2, 2));
33+
a = (int32_t)( 4.00000000000000000e+00);
3434
}
3535

3636
int32_t test_pow_1(int32_t a, int32_t b)

0 commit comments

Comments
 (0)