hotspot/test/compiler/6636138/Test2.java
changeset 3799 6eddf8400cbc
parent 2864 1262819e8925
child 5547 f4b087cbb361
equal deleted inserted replaced
3798:a8d3bacb68d7 3799:6eddf8400cbc
    49     public static void verify(int src[]) {
    49     public static void verify(int src[]) {
    50         for (int i = 0; i < src.length; i++){
    50         for (int i = 0; i < src.length; i++){
    51             int value = (i-1 + src.length)%src.length; // correct value after shifting
    51             int value = (i-1 + src.length)%src.length; // correct value after shifting
    52                 if (src[i] != value) {
    52                 if (src[i] != value) {
    53                     System.out.println("Error: src["+i+"] should be "+ value + " instead of " + src[i]);
    53                     System.out.println("Error: src["+i+"] should be "+ value + " instead of " + src[i]);
    54                     System.exit(-1);
    54                     System.exit(97);
    55                 }
    55                 }
    56         }
    56         }
    57     }
    57     }
    58 
    58 
    59     public static void test() {
    59     public static void test() {