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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libjava/] [testsuite/] [libjava.lang/] [G19990303_02.java] - Rev 769

Go to most recent revision | Compare with Previous | Blame | View Log

public class G19990303_02
{
  public static void main (String[] args)
  {
    int i = -1;
    try
      {
	System.out.println ("Pass 1");
	int[][][] arrayInt = new int[i][1][1];
	int ii = arrayInt[i - 1][0][0];
	System.out.println ("Pass 2");
      }
    catch (NegativeArraySizeException e)
      {
	System.out.println ("Pass NegativeArraySizeException");
      }
    System.out.println ("Pass 3");
  }
}
 

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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