119N/A/*
553N/A * Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved.
119N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
119N/A *
119N/A * This code is free software; you can redistribute it and/or modify it
119N/A * under the terms of the GNU General Public License version 2 only, as
119N/A * published by the Free Software Foundation.
119N/A *
119N/A * This code is distributed in the hope that it will be useful, but WITHOUT
119N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
119N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
119N/A * version 2 for more details (a copy is included in the LICENSE file that
119N/A * accompanied this code).
119N/A *
119N/A * You should have received a copy of the GNU General Public License version
119N/A * 2 along with this work; if not, write to the Free Software Foundation,
119N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
119N/A *
553N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
553N/A * or visit www.oracle.com if you need additional information or have any
553N/A * questions.
119N/A */
119N/A
119N/A/*
119N/A * @test
119N/A * @bug 6500343
119N/A * @summary compiler generates bad code when translating conditional expressions
119N/A * @author Maurizio Cimadamore
119N/A *
119N/A */
119N/A
119N/Apublic class T6500343b {
119N/A
119N/A final static int i1 = 0;
119N/A final static int i2 = 1;
119N/A
119N/A static void crash(int i) {
119N/A switch (i) {
119N/A case (true ? 0 : 1):
119N/A case (i1 == 5 ? 1 : 2):
119N/A case (i1 == i2 ? 2 : 3):
119N/A }
119N/A }
119N/A
119N/A public static void main(String[] args) {
119N/A T6500343b.crash(0);
119N/A }
119N/A}