test/compiler/6636138/Test2.java
Index
Unified diffs
Context diffs
Sdiffs
Wdiffs
Patch
New
Old
Previous File
Next File
6876276 Cdiff test/compiler/6636138/Test2.java
test/compiler/6636138/Test2.java
Print this page
*** 49,59 ****
public static void verify(int src[]) {
for (int i = 0; i < src.length; i++){
int value = (i-1 + src.length)%src.length; // correct value after shifting
if (src[i] != value) {
System.out.println("Error: src["+i+"] should be "+ value + " instead of " + src[i]);
! System.exit(-1);
}
}
}
public static void test() {
--- 49,59 ----
public static void verify(int src[]) {
for (int i = 0; i < src.length; i++){
int value = (i-1 + src.length)%src.length; // correct value after shifting
if (src[i] != value) {
System.out.println("Error: src["+i+"] should be "+ value + " instead of " + src[i]);
! System.exit(97);
}
}
}
public static void test() {
test/compiler/6636138/Test2.java
Index
Unified diffs
Context diffs
Sdiffs
Wdiffs
Patch
New
Old
Previous File
Next File