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

changeset 2027
4932bb04c4b8
parent 0
959103a6100f
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/test/tools/javac/flow/tests/TestCaseDoLoop.java	Sat Sep 14 19:04:47 2013 +0100
     1.3 @@ -0,0 +1,15 @@
     1.4 +/* /nodynamiccopyright/ */
     1.5 +
     1.6 +public class TestCaseDoLoop {
     1.7 +
     1.8 +    @AliveRange(varName="o", bytecodeStart=3, bytecodeLength=15)
     1.9 +    @AliveRange(varName="args", bytecodeStart=0, bytecodeLength=18)
    1.10 +    void m(String[] args) {
    1.11 +        Object o;
    1.12 +        do {
    1.13 +            o = "";
    1.14 +            o.hashCode();
    1.15 +        } while (args[0] != null);
    1.16 +        o = "";
    1.17 +    }
    1.18 +}

mercurial