fixed precedence tests
This commit is contained in:
15
tests/sprint2/test/sp2_integer_binary_op.alpha
Normal file
15
tests/sprint2/test/sp2_integer_binary_op.alpha
Normal file
@ -0,0 +1,15 @@
|
||||
entry(arg) := {
|
||||
[integer:x; address: arr; address: 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;
|
||||
}
|
Reference in New Issue
Block a user