changeset 47216 | 71c04702a3d5 |
parent 28330 | d4bcdcac1211 |
child 47864 | e29ae57c6421 |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/langtools/tools/javac/flow/tests/TestCaseForEach.java Tue Sep 12 19:03:39 2017 +0200 @@ -0,0 +1,15 @@ +/* /nodynamiccopyright/ */ + +public class TestCaseForEach { + + @AliveRange(varName="o", bytecodeStart=25, bytecodeLength=11) + @AliveRange(varName="o", bytecodeStart=39, bytecodeLength=1) + void m(String[] args) { + Object o; + for (String s : args) { + o = ""; + o.hashCode(); + } + o = ""; + } +}