Skip to content

Commit

Permalink
Updated reference tests
Browse files Browse the repository at this point in the history
  • Loading branch information
czgdp1807 committed Feb 27, 2023
1 parent fcae464 commit 75b7e50
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/reference/asr-bindc_03-95dbba7.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"basename": "asr-bindc_03-95dbba7",
"cmd": "lpython --show-asr --no-color {infile} -o {outfile}",
"infile": "tests/errors/bindc_03.py",
"infile_hash": "c1dda7219d26d06ae0835be79e67204ef67f04feb0572d199bec7b1e",
"outfile": null,
"outfile_hash": null,
"stdout": null,
"stdout_hash": null,
"stderr": "asr-bindc_03-95dbba7.stderr",
"stderr_hash": "cd4fd2d0052b8923fd13ebba841ad7b6d91f28a68604d6ae1aa8ba99",
"returncode": 2
}
5 changes: 5 additions & 0 deletions tests/reference/asr-bindc_03-95dbba7.stderr
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
semantic error: Type mismatch in c_p_pointer and target variable, the types must match
--> tests/errors/bindc_03.py:20:16
|
20 | C: Pointer[i16[n]] = c_p_pointer(b, i16[n * k])
| ^^^^^^ ^^^^^^^^^^ type mismatch between target variable type and c_p_pointer allocation type)
4 changes: 4 additions & 0 deletions tests/tests.toml
Original file line number Diff line number Diff line change
Expand Up @@ -990,6 +990,10 @@ asr = true
filename = "errors/bindc_02.py"
asr = true

[[test]]
filename = "errors/bindc_03.py"
asr = true

[[test]]
filename = "errors/cptr_01.py"
asr = true
Expand Down

0 comments on commit 75b7e50

Please sign in to comment.