JDK-8019809.js revision 877:cf4d2252d444
1184610Salfred/* 2184610Salfred * Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved. 3184610Salfred * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4184610Salfred * 5184610Salfred * This code is free software; you can redistribute it and/or modify it 6184610Salfred * under the terms of the GNU General Public License version 2 only, as 7184610Salfred * published by the Free Software Foundation. 8184610Salfred * 9184610Salfred * This code is distributed in the hope that it will be useful, but WITHOUT 10184610Salfred * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11184610Salfred * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12184610Salfred * version 2 for more details (a copy is included in the LICENSE file that 13184610Salfred * accompanied this code). 14184610Salfred * 15184610Salfred * You should have received a copy of the GNU General Public License version 16184610Salfred * 2 along with this work; if not, write to the Free Software Foundation, 17184610Salfred * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18184610Salfred * 19184610Salfred * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20184610Salfred * or visit www.oracle.com if you need additional information or have any 21184610Salfred * questions. 22184610Salfred */ 23184610Salfred 24184610Salfred/** 25184610Salfred * JDK-8019809: Break return combo that generates erroneous bytecode 26184610Salfred * 27194677Sthompsa * @test 28194677Sthompsa * @run 29194677Sthompsa */ 30194677Sthompsa 31194677Sthompsa//Function("L: {break L;return; }"); 32194677Sthompsa 33194677Sthompsafunction f() { 34194677Sthompsa L: { break L; return; } 35194677Sthompsa} 36194677Sthompsa 37194677Sthompsaf(); 38194677Sthompsa