compiler-design-eth/javali_tests/HW4_nop90/OkRegisterUse.javali

30 lines
359 B
Plaintext

/* this test forces the compiler to push registers to the stack */
class Main {
void main() {
int u,v,x,y,z;
boolean e,f,g,h,i,j;
B b1,b2;
e = true;
f = true;
g = true;
while (e) {
if (f){
if (g){
u = 5;
v = 8;
x = u/v;
b1 = new B();
e = false;
}
}
else {
j = true;
}
}
}
}
class B {}