fixed sytnax errors in tests
This commit is contained in:
@ -2,7 +2,7 @@ type rec: [integer: x; integer: y]
|
|||||||
type main: rec -> integer
|
type main: rec -> integer
|
||||||
function test: main
|
function test: main
|
||||||
|
|
||||||
test (arg, arg2) := {
|
test (arg) := {
|
||||||
[integer:x; Boolean: b]
|
[integer:x; Boolean: b]
|
||||||
while (true) {
|
while (true) {
|
||||||
x := 0;
|
x := 0;
|
||||||
@ -12,13 +12,13 @@ test (arg, arg2) := {
|
|||||||
x := 1;
|
x := 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (true) {
|
if (true) then {
|
||||||
x := 1;
|
x := 1;
|
||||||
} else {
|
} else {
|
||||||
x := 0;
|
x := 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (x) {
|
if (x) then {
|
||||||
x := 0;
|
x := 0;
|
||||||
} else {
|
} else {
|
||||||
x := 1;
|
x := 1;
|
||||||
|
@ -11,8 +11,8 @@ entry (arg) := {
|
|||||||
b2 := 3 * 2 % 8;
|
b2 := 3 * 2 % 8;
|
||||||
x := 3 % 2 * 8;
|
x := 3 % 2 * 8;
|
||||||
x := 3 + arr - 8;
|
x := 3 + arr - 8;
|
||||||
r.x;
|
x := r.x;
|
||||||
a.x;
|
x := a.x;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user