Skip to content

Commit 4a44668

Browse files
+ regression test for Java exception handling
1 parent 45239a8 commit 4a44668

File tree

4 files changed

+31
-0
lines changed

4 files changed

+31
-0
lines changed
241 Bytes
Binary file not shown.
756 Bytes
Binary file not shown.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
class A extends RuntimeException {}
2+
class B extends A {}
3+
4+
public class Test {
5+
void foo()
6+
{
7+
A a=new A();
8+
throw a;
9+
}
10+
void goo()
11+
{
12+
try
13+
{
14+
foo();
15+
assert false;
16+
}
17+
catch(B e)
18+
{
19+
assert false;
20+
}
21+
}
22+
23+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
CORE
2+
Test.class
3+
--function Test.goo
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
^VERIFICATION SUCCESSFUL$
7+
--
8+
^warning: ignoring

0 commit comments

Comments
 (0)