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] - Blame information for rev 781

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

Line No. Rev Author Line
1 765 jeremybenn
// Some tests of `throw'.
2
 
3
public class Throw_1
4
{
5
  public static Throwable get ()
6
    {
7
      return null;
8
    }
9
 
10
  public static void main (String[] args)
11
    {
12
      Throwable t = get ();
13
      try
14
        {
15
          throw t;
16
        }
17
      catch (NullPointerException y)
18
        {
19
        }
20
      catch (Throwable x)
21
        {
22
          System.out.println ("no");
23
        }
24
    }
25
}

powered by: WebSVN 2.1.0

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