459N/A/*
1472N/A * Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved.
459N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
459N/A *
459N/A * This code is free software; you can redistribute it and/or modify it
459N/A * under the terms of the GNU General Public License version 2 only, as
459N/A * published by the Free Software Foundation.
459N/A *
459N/A * This code is distributed in the hope that it will be useful, but WITHOUT
459N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
459N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
459N/A * version 2 for more details (a copy is included in the LICENSE file that
459N/A * accompanied this code).
459N/A *
459N/A * You should have received a copy of the GNU General Public License version
459N/A * 2 along with this work; if not, write to the Free Software Foundation,
459N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
459N/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.
459N/A */
459N/A
459N/A/**
459N/A * @test
459N/A * @bug 6756768
459N/A * @summary C1 generates invalid code
459N/A *
459N/A * @run main/othervm -Xcomp Test6756768
459N/A */
459N/A
459N/Aclass Test6756768a
459N/A{
459N/A static boolean var_1 = true;
459N/A}
459N/A
459N/Afinal class Test6756768b
459N/A{
459N/A static boolean var_24 = false;
459N/A static int var_25 = 0;
459N/A
459N/A static boolean var_temp1 = Test6756768a.var_1 = false;
459N/A}
459N/A
459N/Apublic final class Test6756768 extends Test6756768a
459N/A{
459N/A final static int var = var_1 ^ (Test6756768b.var_24 ? var_1 : var_1) ? Test6756768b.var_25 : 1;
459N/A
459N/A static public void main(String[] args) {
459N/A if (var != 0) {
459N/A throw new InternalError("var = " + var);
459N/A }
459N/A }
459N/A
459N/A}