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

changeset 2027
4932bb04c4b8
parent 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/TestCaseWhile.java	Sat Sep 14 19:04:47 2013 +0100
     1.3 @@ -0,0 +1,15 @@
     1.4 +/* /nodynamiccopyright/ */
     1.5 +
     1.6 +public class TestCaseWhile {
     1.7 +
     1.8 +    @AliveRange(varName="o", bytecodeStart=9, bytecodeLength=5)
     1.9 +    @AliveRange(varName="o", bytecodeStart=20, bytecodeLength=1)
    1.10 +    void m(String[] args) {
    1.11 +        Object o;
    1.12 +        while (args[0] != null) {
    1.13 +            o = "";
    1.14 +            o.hashCode();
    1.15 +        }
    1.16 +        o = "";
    1.17 +    }
    1.18 +}

mercurial