/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*
*/
/**
* @test
* @bug 7052494
* @summary Eclipse test fails on JDK 7 b142
*
*/
public class Test7052494 {
int result = 0;
while (i++ != 0) {
break;
result = i*2;
}
return result;
}
int result = 0;
while (i-- != 0) {
break;
result = i*2;
}
return result;
}
while (i++ != 0) {
break;
arr[i] = i*2;
}
}
while (i-- != 0) {
break;
}
}
// Empty loop rolls through MAXINT if i > 0
static int test5(int i) {
int result = 0;
while (i++ != limit5) {
result = i*2;
}
return result;
}
// Empty loop rolls through MININT if i < 0
static int test6(int i) {
int result = 0;
while (i-- != limit6) {
result = i*2;
}
return result;
}
boolean failed = false;
int[] arr = new int[8];
for (int i = 0; i < 11000; i++) {
if (k != 10) {
failed = true;
break;
}
}
for (int i = 0; i < 11000; i++) {
if (k != -10) {
failed = true;
break;
}
}
for (int i = 0; i < 11000; i++) {
failed = true;
break;
}
}
for (int i = 0; i < 11000; i++) {
failed = true;
break;
}
}
for (int i = 0; i < 11000; i++) {
if (k != limit5*2) {
failed = true;
break;
}
}
for (int i = 0; i < 11000; i++) {
if (k != limit6*2) {
failed = true;
break;
}
}
if (failed)
}
}