compiler-design-eth/javali_tests/HW1/ImmediateOperands.javali

20 lines
248 B
Text
Raw Normal View History

2020-01-15 22:18:07 +01:00
/* Check if code selection for immediate operands works */
class Main {
void main() {
int i0;
i0 = 0;
i0 = 5 + i0;
write(i0);
writeln();
i0 = i0 + 5;
write(i0);
writeln();
i0 = i0 + 5 + 3;
write(i0);
writeln();
}
}