Int_greater03.java revision 12651:6ef01bd40ce2
14Srgrimes/* 24Srgrimes * Copyright (c) 2007, 2012, Oracle and/or its affiliates. All rights reserved. 34Srgrimes * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 44Srgrimes * 54Srgrimes * This code is free software; you can redistribute it and/or modify it 64Srgrimes * under the terms of the GNU General Public License version 2 only, as 74Srgrimes * published by the Free Software Foundation. 84Srgrimes * 94Srgrimes * This code is distributed in the hope that it will be useful, but WITHOUT 104Srgrimes * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 114Srgrimes * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 124Srgrimes * version 2 for more details (a copy is included in the LICENSE file that 134Srgrimes * accompanied this code). 144Srgrimes * 154Srgrimes * You should have received a copy of the GNU General Public License version 164Srgrimes * 2 along with this work; if not, write to the Free Software Foundation, 174Srgrimes * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 184Srgrimes * 194Srgrimes * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 204Srgrimes * or visit www.oracle.com if you need additional information or have any 214Srgrimes * questions. 224Srgrimes */ 234Srgrimes/* 244Srgrimes */ 254Srgrimespackage org.graalvm.compiler.jtt.lang; 264Srgrimes 274Srgrimesimport org.junit.Test; 284Srgrimes 294Srgrimesimport org.graalvm.compiler.jtt.JTTTest; 304Srgrimes 314Srgrimespublic final class Int_greater03 extends JTTTest { 324Srgrimes 334Srgrimes public static boolean test(int i) { 344Srgrimes if (i > -5) { 354Srgrimes return true; 36619Srgrimes } 3718288Sbde return false; 384Srgrimes } 394Srgrimes 403185Ssos @Test 413185Ssos public void run0() throws Throwable { 423185Ssos runTest("test", -2147483648); 433185Ssos } 443185Ssos 452913Sache @Test 462913Sache public void run1() throws Throwable { 474Srgrimes runTest("test", -6); 484Srgrimes } 494Srgrimes 5013228Swollman @Test 5116299Spst public void run2() throws Throwable { 5213228Swollman runTest("test", -5); 532056Swollman } 542056Swollman 552056Swollman @Test 562056Swollman public void run3() throws Throwable { 5715508Sbde runTest("test", -4); 5815508Sbde } 594180Sbde 6015508Sbde @Test 6115508Sbde public void run4() throws Throwable { 6215508Sbde runTest("test", -1); 6315508Sbde } 642056Swollman 6515508Sbde @Test 662056Swollman public void run5() throws Throwable { 672056Swollman runTest("test", 0); 687090Sbde } 692056Swollman 702056Swollman @Test 714Srgrimes public void run6() throws Throwable { 722873Sbde runTest("test", 1); 732873Sbde } 742873Sbde 752873Sbde @Test 762873Sbde public void run7() throws Throwable { 772913Sache runTest("test", 2); 782873Sbde } 7915508Sbde 804Srgrimes @Test 814180Sbde public void run8() throws Throwable { 824180Sbde runTest("test", 2147483647); 834180Sbde } 844180Sbde 854180Sbde} 864180Sbde