This commit is contained in:
Scarlett
2025-04-08 16:01:36 -04:00
parent 87659ebf46
commit a4dc3d90be
5 changed files with 82 additions and 25 deletions

View File

@ -31,6 +31,9 @@ test (arg) := {
b := b & 1;
b := 1 & b;
b := 1 = 1;
b := 1 = b;
return 0;

View File

@ -0,0 +1,23 @@
(*
Testing the following type checks:
- integer : primitive
- character : primitive
- boolean : primitive
- address (not included, special case)
*)
type main: string -> integer
function entry: main
entry (arg) := {
[integer: i; address: add; character: char; Boolean: bool]
i := 3 + 2 * 8;
char := 'a';
bool := true;
return 0;
}