129N/A/*
1472N/A * Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved.
253N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
129N/A *
253N/A * This code is free software; you can redistribute it and/or modify it
253N/A * under the terms of the GNU General Public License version 2 only, as
253N/A * published by the Free Software Foundation.
129N/A *
253N/A * This code is distributed in the hope that it will be useful, but WITHOUT
253N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
253N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
253N/A * version 2 for more details (a copy is included in the LICENSE file that
253N/A * accompanied this code).
129N/A *
253N/A * You should have received a copy of the GNU General Public License version
253N/A * 2 along with this work; if not, write to the Free Software Foundation,
253N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
129N/A *
1472N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
1472N/A * or visit www.oracle.com if you need additional information or have any
1472N/A * questions.
129N/A */
129N/A
129N/A/*
129N/A * @test
129N/A * @bug 6646019
129N/A * @summary array subscript expressions become top() with -d64
129N/A * @run main/othervm -Xcomp -XX:CompileOnly=Test.test Test
129N/A*/
129N/A
129N/A
129N/Apublic class Test {
129N/A final static int i = 2076285318;
129N/A long l = 2;
129N/A short s;
129N/A
129N/A public static void main(String[] args) {
129N/A Test t = new Test();
129N/A try { t.test(); }
129N/A catch (Throwable e) {
129N/A if (t.l != 5) {
129N/A System.out.println("Fails: " + t.l + " != 5");
129N/A }
129N/A }
129N/A }
129N/A
129N/A private void test() {
129N/A l = 5;
129N/A l = (new short[(byte)-2])[(byte)(l = i)];
129N/A }
129N/A}