-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9eb96cb
commit b997d2d
Showing
282 changed files
with
1,202 additions
and
795 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it | ||
--> tests/../integration_tests/array_01_decl.py:1:1 | ||
| | ||
1 | from lpython import i16, i32, i64, f32, f64, c32, c64 | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it | ||
--> tests/../integration_tests/array_02_decl.py:1:1 | ||
| | ||
1 | from lpython import i32, i64, f32, f64, c32, c64 | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it | ||
--> tests/assign2.py:1:1 | ||
| | ||
1 | from lpython import i32, i64, f32, f64 | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it | ||
--> tests/../integration_tests/bindc_01.py:1:1 | ||
| | ||
1 | from lpython import c_p_pointer, CPtr, i16, Pointer, empty_c_void_p | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,5 @@ | ||
semantic error: Type mismatch in procedure call; the types must be compatible | ||
--> tests/errors/bindc_01.py:9:14 | ||
semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it | ||
--> tests/errors/bindc_01.py:1:1 | ||
| | ||
9 | cptr_arg(int32obj) | ||
| ^^^^^^^^ type mismatch (passed argument type is i32 but required type is CPtr) | ||
| | ||
4 | def cptr_arg(arg1: CPtr): | ||
| ^^^^ type mismatch (passed argument type is i32 but required type is CPtr) | ||
1 | from lpython import i32, CPtr, ccall | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,5 @@ | ||
semantic error: Type mismatch in procedure call; the types must be compatible | ||
--> tests/errors/bindc_02.py:9:24 | ||
semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it | ||
--> tests/errors/bindc_02.py:1:1 | ||
| | ||
9 | s: Struct = Struct(int32obj) | ||
| ^^^^^^^^ type mismatch (passed argument type is i32 but required type is CPtr) | ||
| | ||
5 | cptr_member: CPtr | ||
| ^^^^ type mismatch (passed argument type is i32 but required type is CPtr) | ||
1 | from lpython import i32, CPtr, ccall, dataclass | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it | ||
--> tests/../integration_tests/bindc_02.py:1:1 | ||
| | ||
1 | from lpython import c_p_pointer, CPtr, pointer, i16, Pointer, empty_c_void_p | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +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) | ||
semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it | ||
--> tests/errors/bindc_03.py:2:1 | ||
| | ||
2 | from lpython import c_p_pointer, CPtr, i32, Pointer, i16 | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it | ||
--> tests/c_interop1.py:1:1 | ||
| | ||
1 | from lpython import ccall, f32, f64, i32, i64 | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
warning: The module 'lpython_builtin' located in $DIR\src\bin/../runtime/lpython_builtin.py cannot be loaded | ||
--> tests/cast.py:5:9 | ||
| | ||
5 | x = list(s) | ||
| ^^^^^^^ imported here | ||
|
||
semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it | ||
--> $DIR\src\bin/../runtime/lpython_builtin.py:1:1 | ||
| | ||
1 | from lpython import i8, i16, i32, i64, f32, f64, c32, c64, overload | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it | ||
--> tests/complex1.py:1:1 | ||
| | ||
1 | from lpython import c32, c64 | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
semantic error: Constant variable x is not initialised at declaration. | ||
--> tests/errors/const_01.py:4:5 | ||
semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it | ||
--> tests/errors/const_01.py:1:1 | ||
| | ||
4 | x: Const[i32] | ||
| ^^^^^^^^^^^^^ | ||
1 | from lpython import i32, Const | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
semantic error: Targets with Const[i32] type cannot be re-assigned. | ||
--> tests/errors/const_02.py:5:5 | ||
semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it | ||
--> tests/errors/const_02.py:1:1 | ||
| | ||
5 | x = 5 | ||
| ^ | ||
1 | from lpython import i32, Const | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it | ||
--> tests/constants1.py:1:1 | ||
| | ||
1 | from lpython import f32, i32, i64, f64 | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
semantic error: Indexing CPtr typed expressions is not supported yet | ||
--> tests/errors/cptr_01.py:5:11 | ||
semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it | ||
--> tests/errors/cptr_01.py:1:1 | ||
| | ||
5 | print(x[0]) | ||
| ^^^^ | ||
1 | from lpython import CPtr, empty_c_void_p | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it | ||
--> tests/doconcurrentloop_01.py:1:1 | ||
| | ||
1 | from lpython import f32, i32 | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it | ||
--> tests/../integration_tests/elemental_01.py:1:1 | ||
| | ||
1 | from lpython import i32, f64, f32 | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,5 @@ | ||
semantic error: Enumerations with non-integer or non-unique integer values cannot interoperate with C code. | ||
--> tests/errors/enum_01.py:5:1 - 8:19 | ||
semantic error: Could not find the module '__init__'. If an import path is available, please use the `-I` option to specify it | ||
--> tests/errors/enum_01.py:1:1 | ||
| | ||
5 | class Color(Enum): | ||
| ^^^^^^^^^^^^^^^^^^... | ||
... | ||
| | ||
8 | BLUE: f64 = 0.7 | ||
| ...^^^^^^^^^^^^^^^^^^^ | ||
1 | from lpython import f64, ccall | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
Oops, something went wrong.