Skip to content

Commit 0353de5

Browse files
author
Daniel Kroening
authored
Merge pull request #392 from smowton/local_variable_block_scoping_master
Java local variable block scoping
2 parents 9b8df36 + 6cc846a commit 0353de5

File tree

4 files changed

+446
-27
lines changed

4 files changed

+446
-27
lines changed
418 Bytes
Binary file not shown.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
CORE
2+
test.class
3+
--show-symbol-table
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
^pc7:
7+
--
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
public class test {
2+
3+
public static void main() {
4+
5+
int x = 5;
6+
if(x == 4) {
7+
int y = x + 1;
8+
++y;
9+
}
10+
else {
11+
int z = x + 1;
12+
++z;
13+
}
14+
15+
}
16+
17+
}

0 commit comments

Comments
 (0)