1 class Overflow
2 {
test(int x)3   static int test(int x)
4   {
5     return (2*x)/2;
6   }
7 
main(String argv[])8   public static void main(String argv[])
9   {
10     int x = Integer.MAX_VALUE;
11 
12     if (test(x) == x)
13       throw new RuntimeException ();
14   }
15 }
16 
17