< prev index next >
test/compiler/c2/Test6646019.java
Print this page
rev 11557 : 8132919: use package in compiler tests
Reviewed-by: duke
@@ -23,29 +23,34 @@
/*
* @test
* @bug 6646019
* @summary array subscript expressions become top() with -d64
- * @run main/othervm -Xcomp -XX:CompileOnly=Test.test Test
+ *
+ * @run main/othervm -Xcomp
+ * -XX:CompileCommand=compileonly,compiler.c2.Test6646019::test
+ * compiler.c2.Test6646019
*/
+package compiler.c2;
-public class Test {
+public class Test6646019 {
final static int i = 2076285318;
long l = 2;
short s;
public static void main(String[] args) {
- Test t = new Test();
- try { t.test(); }
- catch (Throwable e) {
+ Test6646019 t = new Test6646019();
+ try {
+ t.test();
+ } catch (Throwable e) {
if (t.l != 5) {
System.out.println("Fails: " + t.l + " != 5");
}
}
}
private void test() {
l = 5;
- l = (new short[(byte)-2])[(byte)(l = i)];
+ l = (new short[(byte) -2])[(byte) (l = i)];
}
}
< prev index next >