Files
compiler-the-translators/tests/sprint2/test/sp2_integer_binary_op.alpha
2025-05-04 16:05:13 -04:00

23 lines
430 B
Plaintext

(* TEST: [-st] *)
type main: string -> integer
function entry: main
type testarr : 1 -> integer
entry (arg) := {
[integer:x; testarr: arr; testarr: arr2; Boolean : b2; Boolean : b1]
x := 3 + 2 * 8;
x := 3 - 2 / 8;
x := 3 * 2 % 8;
x := 3 * 2 % 8;
x := 3 % 2 * 8;
x := 3 + 2 - 8;
arr2 := 1 * reserve x;
arr2 := release x;
b2 := 3 < 2;
b1 := 1 = 2;
b2 := !(3 < 2);
b1 := 6<7 & 7=7;
}