Mjc does not generate proper code for ++a[++i]. E.g. try:
1. int[] a = {99, 100, 101}; 2, int i = 0; 3. int ret = ++a[++i]; 4. After step 3, the value of ret is : 102 the value of i is : 2 the values in array a is : {99, 102, 101}
Logged In: YES user_id=633675
I have checked in the code needed to test this under mjc/testcase/bugs.
The expected output is
ret is 101 i is 1 a is {99, 101, 101}
Log in to post a comment.
Logged In: YES
user_id=633675
I have checked in the code needed to test this under
mjc/testcase/bugs.
The expected output is
ret is 101
i is 1
a is {99, 101, 101}