Tue, 16 Aug 2016 21:41:28 -0700
Added tag jdk8u102-b33 for changeset 36e3c21b5fca
attila@1365 | 1 | /* |
sundar@1482 | 2 | * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. |
attila@1365 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
sundar@1482 | 4 | * |
attila@1365 | 5 | * This code is free software; you can redistribute it and/or modify it |
attila@1365 | 6 | * under the terms of the GNU General Public License version 2 only, as |
attila@1365 | 7 | * published by the Free Software Foundation. |
sundar@1482 | 8 | * |
attila@1365 | 9 | * This code is distributed in the hope that it will be useful, but WITHOUT |
attila@1365 | 10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
attila@1365 | 11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
attila@1365 | 12 | * version 2 for more details (a copy is included in the LICENSE file that |
attila@1365 | 13 | * accompanied this code). |
sundar@1482 | 14 | * |
attila@1365 | 15 | * You should have received a copy of the GNU General Public License version |
attila@1365 | 16 | * 2 along with this work; if not, write to the Free Software Foundation, |
attila@1365 | 17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
sundar@1482 | 18 | * |
attila@1365 | 19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
attila@1365 | 20 | * or visit www.oracle.com if you need additional information or have any |
attila@1365 | 21 | * questions. |
attila@1365 | 22 | */ |
attila@1365 | 23 | |
attila@1365 | 24 | /** |
attila@1365 | 25 | * JDK-8079424: code generator for discarded boolean logical operation has an extra pop |
attila@1365 | 26 | * |
attila@1365 | 27 | * @test |
attila@1365 | 28 | * @run |
attila@1365 | 29 | */ |
attila@1365 | 30 | |
attila@1365 | 31 | // If the compiler manages to compile all of these, the test passes. |
attila@1365 | 32 | void (true && true); |
attila@1365 | 33 | void (true && false); |
attila@1365 | 34 | void (false && true); |
attila@1365 | 35 | void (false && false); |
attila@1365 | 36 | |
attila@1365 | 37 | void (true || true); |
attila@1365 | 38 | void (true || false); |
attila@1365 | 39 | void (false || true); |
attila@1365 | 40 | void (false || false); |
attila@1365 | 41 | |
attila@1365 | 42 | void (1 && 1); |
attila@1365 | 43 | void (1 && 0); |
attila@1365 | 44 | void (0 && 1); |
attila@1365 | 45 | void (0 && 0); |
attila@1365 | 46 | |
attila@1365 | 47 | void (1 || 1); |
attila@1365 | 48 | void (1 || 0); |
attila@1365 | 49 | void (0 || 1); |
attila@1365 | 50 | void (0 || 0); |