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

Subversion Repositories openrisc

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

Compare with Previous | Blame | View Log

// Some tests of `throw'.
 
public class Throw_1
{
  public static Throwable get ()
    {
      return null;
    }
 
  public static void main (String[] args)
    {
      Throwable t = get ();
      try
	{
	  throw t;
	}
      catch (NullPointerException y)
	{
	}
      catch (Throwable x)
	{
	  System.out.println ("no");
	}
    }
}
 

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.