mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-28 12:05:10 +08:00
ee9dd3721b
From-SVN: r26263
26 lines
332 B
Java
26 lines
332 B
Java
// 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");
|
|
}
|
|
}
|
|
}
|