Skip to content

Commit addb642

Browse files
committed
Add testcase for local variable table fixes
1 parent 92a068f commit addb642

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed
Binary file not shown.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// Must compile this with -g (produces LocalVarTable) to exhibit bug.
2+
3+
public class LocalVarTable2 {
4+
5+
public static Object f() {
6+
for(int i = 0; i < 10; ++i) { System.out.printf("Count %d\n", i); }
7+
try {
8+
return new Object();
9+
}
10+
finally {
11+
System.out.println("Finally executed\n");
12+
}
13+
}
14+
15+
public static void main(String[] args) {
16+
f();
17+
}
18+
19+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
CORE
2+
LocalVarTable2.class
3+
--show-goto-functions
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
--
7+
return_value.*(void \*)i

0 commit comments

Comments
 (0)