Skip to content

Commit

Permalink
Update reference tests
Browse files Browse the repository at this point in the history
  • Loading branch information
certik committed Jul 9, 2023
1 parent d006b06 commit 2355385
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 24 deletions.
13 changes: 13 additions & 0 deletions tests/reference/asr-bindc_10e-8b10394.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"basename": "asr-bindc_10e-8b10394",
"cmd": "lpython --show-asr --no-color {infile} -o {outfile}",
"infile": "tests/errors/bindc_10e.py",
"infile_hash": "36d1b5d366716d6a601db544fe8ff32aba76518181e71a98a4e6500c",
"outfile": null,
"outfile_hash": null,
"stdout": null,
"stdout_hash": null,
"stderr": "asr-bindc_10e-8b10394.stderr",
"stderr_hash": "7686dd8c9b718548d301e28d39cd15a85b00030172c5658b38a75af5",
"returncode": 2
}
12 changes: 12 additions & 0 deletions tests/reference/asr-bindc_10e-8b10394.stderr
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
semantic error: The struct in c_p_pointer must be C interoperable
--> tests/errors/bindc_10e.py:23:38
|
23 | p2: Pointer[S] = c_p_pointer(p1, S)
| ^ not C interoperable
|
15 | class S:
| ~~~~~~~~...
...
|
17 | b: i64
| ...~~~~~~~~~~ help: add the @ccallable decorator to this struct to make it C interoperable
4 changes: 2 additions & 2 deletions tests/reference/asr-structs_02-2ab459a.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
"basename": "asr-structs_02-2ab459a",
"cmd": "lpython --show-asr --no-color {infile} -o {outfile}",
"infile": "tests/../integration_tests/structs_02.py",
"infile_hash": "6d54aa7c2bb850cbce2c0add7b77f9f72c9323162ae080c7eef4867a",
"infile_hash": "281bc75fb743f18fb6f011b278d7ab8103cc688f5856a59cb1f54895",
"outfile": null,
"outfile_hash": null,
"stdout": "asr-structs_02-2ab459a.stdout",
"stdout_hash": "e5df0fb84bfc694b884736c1c4a5ddaec25933d8dba54e894de3e961",
"stdout_hash": "3a3e1108225886c52d459a08a26d5b35d4aea338982034d43079769d",
"stderr": null,
"stderr_hash": null,
"returncode": 0
Expand Down
22 changes: 0 additions & 22 deletions tests/reference/asr-structs_02-2ab459a.stdout
Original file line number Diff line number Diff line change
Expand Up @@ -304,28 +304,6 @@
()
)
()
)
(CPtrToPointer
(Var 3 a)
(Var 3 a2)
()
()
)
(Print
()
[(Var 3 a)
(Var 3 a2)
(GetPointer
(Var 3 a1)
(Pointer
(Struct
8 A
)
)
()
)]
()
()
)]
()
Public
Expand Down

0 comments on commit 2355385

Please sign in to comment.