OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libjava/] [testsuite/] [libjava.lang/] [Overflow.java] - Blame information for rev 765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 765 jeremybenn
class Overflow
2
{
3
  static int test(int x)
4
  {
5
    return (2*x)/2;
6
  }
7
 
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
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.