Skip to content

Commit bb9c28a

Browse files
Added regression test capturing an exception handler that does not start with astore
1 parent 7707287 commit bb9c28a

File tree

3 files changed

+33
-0
lines changed

3 files changed

+33
-0
lines changed
Binary file not shown.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
.class exception_handler
2+
.super java/lang/Object
3+
4+
.method public <init>()V
5+
aload_0
6+
invokevirtual java/lang/Object/<init>()V
7+
return
8+
.end method
9+
10+
.method public f()V
11+
.limit stack 4
12+
.limit locals 4
13+
14+
begin:
15+
new java/lang/Exception
16+
dup
17+
invokespecial java/lang/Exception.<init>()V
18+
athrow
19+
start:
20+
nop
21+
end:
22+
astore_1
23+
return
24+
.catch all from begin to end using start
25+
.end method
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
CORE
2+
exception_handler.class
3+
--function exception_handler.f
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
^VERIFICATION SUCCESSFUL$
7+
--
8+
^warning: ignoring

0 commit comments

Comments
 (0)