test/tools/javac/flow/tests/TestCaseForEach.java

changeset 0
959103a6100f
child 2709
dca7f60e618d
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/test/tools/javac/flow/tests/TestCaseForEach.java	Wed Apr 27 01:34:52 2016 +0800
     1.3 @@ -0,0 +1,15 @@
     1.4 +/* /nodynamiccopyright/ */
     1.5 +
     1.6 +public class TestCaseForEach {
     1.7 +
     1.8 +    @AliveRange(varName="o", bytecodeStart=25, bytecodeLength=8)
     1.9 +    @AliveRange(varName="o", bytecodeStart=39, bytecodeLength=1)
    1.10 +    void m(String[] args) {
    1.11 +        Object o;
    1.12 +        for (String s : args) {
    1.13 +            o = "";
    1.14 +            o.hashCode();
    1.15 +        }
    1.16 +        o = "";
    1.17 +    }
    1.18 +}

mercurial