2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / libjava / testsuite / libjava.lang / Overflow.java
blob312e9cb209f201b672293f9ae05a9b5558306fdc
1 class Overflow
3 static int test(int x)
5 return (2*x)/2;
8 public static void main(String argv[])
10 int x = Integer.MAX_VALUE;
12 if (test(x) == x)
13 throw new RuntimeException ();