test/script/basic/JDK-8019809.js

Tue, 21 Mar 2017 13:41:57 -0700

author
asaha
date
Tue, 21 Mar 2017 13:41:57 -0700
changeset 2160
1df40fe54cd6
parent 962
ac62e33a99b0
child 1205
4112748288bb
permissions
-rw-r--r--

Merge

lagergren@407 1 /*
lagergren@407 2 * Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
lagergren@407 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
attila@962 4 *
lagergren@407 5 * This code is free software; you can redistribute it and/or modify it
lagergren@407 6 * under the terms of the GNU General Public License version 2 only, as
lagergren@407 7 * published by the Free Software Foundation.
attila@962 8 *
lagergren@407 9 * This code is distributed in the hope that it will be useful, but WITHOUT
lagergren@407 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
lagergren@407 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
lagergren@407 12 * version 2 for more details (a copy is included in the LICENSE file that
lagergren@407 13 * accompanied this code).
attila@962 14 *
lagergren@407 15 * You should have received a copy of the GNU General Public License version
lagergren@407 16 * 2 along with this work; if not, write to the Free Software Foundation,
lagergren@407 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
attila@962 18 *
lagergren@407 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
lagergren@407 20 * or visit www.oracle.com if you need additional information or have any
lagergren@407 21 * questions.
lagergren@407 22 */
lagergren@407 23
lagergren@407 24 /**
lagergren@407 25 * JDK-8019809: Break return combo that generates erroneous bytecode
lagergren@407 26 *
lagergren@407 27 * @test
lagergren@407 28 * @run
lagergren@407 29 */
lagergren@407 30
attila@962 31 //Function("L: {break L;return; }");
lagergren@407 32
lagergren@407 33 function f() {
lagergren@407 34 L: { break L; return; }
lagergren@407 35 }
lagergren@407 36
lagergren@407 37 f();

mercurial