< prev index next >

test/compiler/c2/Test6186134.java

Print this page
rev 11557 : 8132919: use package in compiler tests
Reviewed-by: duke

*** 25,36 **** /** * @test * @bug 6186134 * @summary Server virtual machine produces/exeutes incorrect code. * ! * @run main Test6186134 100000 */ import java.util.ArrayList; public class Test6186134 { int num = 0; --- 25,39 ---- /** * @test * @bug 6186134 * @summary Server virtual machine produces/exeutes incorrect code. * ! * @run main compiler.c2.Test6186134 100000 */ + + package compiler.c2; + import java.util.ArrayList; public class Test6186134 { int num = 0;
*** 55,69 **** return res; } public static void main(String[] pars) { int n = Integer.parseInt(pars[0]); ! for (int i=0; i<n; i++) { Test6186134 t = new Test6186134(10); int size = t.test1().size(); if (size != 10) { ! System.out.println("wrong size: " + size +", should be 10"); System.exit(97); } } System.out.println("Passed"); } --- 58,72 ---- return res; } public static void main(String[] pars) { int n = Integer.parseInt(pars[0]); ! for (int i = 0; i < n; i++) { Test6186134 t = new Test6186134(10); int size = t.test1().size(); if (size != 10) { ! System.out.println("wrong size: " + size + ", should be 10"); System.exit(97); } } System.out.println("Passed"); }
< prev index next >