repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
FDO insane profile
[official-gcc.git]
/
libjava
/
testsuite
/
libjava.lang
/
Throw_1.java
blob
4a0780aec063d7d91d3af0b1aceaebde6d4efd25
1
// 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
}