tryforbreak.js revision 877:cf4d2252d444
1243245Strasz/* 2243245Strasz * Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved. 3243245Strasz * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4243245Strasz * 5243245Strasz * This code is free software; you can redistribute it and/or modify it 6243245Strasz * under the terms of the GNU General Public License version 2 only, as 7243245Strasz * published by the Free Software Foundation. 8243245Strasz * 9243245Strasz * This code is distributed in the hope that it will be useful, but WITHOUT 10243245Strasz * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11243245Strasz * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12243245Strasz * version 2 for more details (a copy is included in the LICENSE file that 13243245Strasz * accompanied this code). 14243245Strasz * 15243245Strasz * You should have received a copy of the GNU General Public License version 16243245Strasz * 2 along with this work; if not, write to the Free Software Foundation, 17243245Strasz * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18243245Strasz * 19243245Strasz * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20243245Strasz * or visit www.oracle.com if you need additional information or have any 21243245Strasz * questions. 22243245Strasz */ 23243245Strasz 24243245Strasz/** 25243245Strasz * This results in VerifyError: Inconsistent stackmap frames at branch target. 26243245Strasz * 27243245Strasz * @test 28243245Strasz * @run 29243245Strasz */ 30243245Strasz 31243245Strasztry { 32243245Strasz for(i = 0; i < 3; i++) { 33243245Strasz break; 34243245Strasz }; 35243245Strasz} catch (e) { 36243245Strasz} 37243245Strasz 38243245Straszprint("done"); 39243245Strasz