|
1 /* /nodynamiccopyright/ */ |
|
2 |
|
3 public class TestCaseFor { |
|
4 |
|
5 @AliveRange(varName="o", bytecodeStart=10, bytecodeLength=8) |
|
6 @AliveRange(varName="o", bytecodeStart=24, bytecodeLength=1) |
|
7 void m1(String[] args) { |
|
8 Object o; |
|
9 for (int i = 0; i < 5; i++) { |
|
10 o = ""; |
|
11 o.hashCode(); |
|
12 } |
|
13 o = ""; |
|
14 } |
|
15 |
|
16 @AliveRange(varName="o", bytecodeStart=10, bytecodeLength=8) |
|
17 @AliveRange(varName="o", bytecodeStart=24, bytecodeLength=1) |
|
18 void m2(String[] args) { |
|
19 Object o; |
|
20 for (int i = 0; i < 5; i++) { |
|
21 o = ""; |
|
22 o.hashCode(); |
|
23 continue; |
|
24 } |
|
25 o = ""; |
|
26 } |
|
27 } |