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 10, 2023
1 parent 1e21b05 commit b35f614
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions tests/reference/asr-bindc_10e-8b10394.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
"basename": "asr-bindc_10e-8b10394",
"cmd": "lpython --show-asr --no-color {infile} -o {outfile}",
"infile": "tests/errors/bindc_10e.py",
"infile_hash": "36d1b5d366716d6a601db544fe8ff32aba76518181e71a98a4e6500c",
"infile_hash": "fa023d4ad17e426f778a99326998e6dbeac5428fa252974a39a3219d",
"outfile": null,
"outfile_hash": null,
"stdout": null,
"stdout_hash": null,
"stderr": "asr-bindc_10e-8b10394.stderr",
"stderr_hash": "7686dd8c9b718548d301e28d39cd15a85b00030172c5658b38a75af5",
"stderr_hash": "9ea4ff2c8a8789057456196deb5772e4b3a2dffadbd10ecfe5f15f29",
"returncode": 2
}
10 changes: 6 additions & 4 deletions tests/reference/asr-bindc_10e-8b10394.stderr
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
semantic error: The struct in c_p_pointer must be C interoperable
--> tests/errors/bindc_10e.py:23:38
--> tests/errors/bindc_10e.py:15:38
|
23 | p2: Pointer[S] = c_p_pointer(p1, S)
15 | p2: Pointer[S] = c_p_pointer(p1, S)
| ^ not C interoperable

--> tests/errors/bindc_10e_mod.py:5:1 - 7:10
|
15 | class S:
5 | class S:
| ~~~~~~~~...
...
|
17 | b: i64
7 | b: i64
| ...~~~~~~~~~~ help: add the @ccallable decorator to this struct to make it C interoperable

0 comments on commit b35f614

Please sign in to comment.