blob: ce31617e79a508013bf6e4a53d079124f0713531 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
/**
* @testcase PR#715 PUREJAVA incrementing objects, arrays
*/
public class ArrayInc2CE {
public void testObjectIncrementingCE() {
boolean b;
int i = 0;
Object object = new Object();
int[] ra = new int[]{};
++ra; // CE prefix ++ cannot be applied to int[]
++object; // CE prefix ++ cannot be applied to Object
ra++; // CE postfix ++ cannot be applied to int[]
object++; // CE postfix ++ cannot be applied to Object
}
}
|