aboutsummaryrefslogtreecommitdiff
path: root/libjava/testsuite/libjava.compile/PR16249.java
blob: 5495dda3430fc6fd2048bb5f668f63d6de49af4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Regression test for PR java/16249.

class PR16249
{
    static void bug(byte[] iCode, int pc)
    {
        while (pc < 100) {
            try {
                switch (iCode[pc] & 0xff) {
                    case 666:
                        iCode[++pc] = 1;
                }
            }
            catch (Throwable ex) {
            }
        }
    }
}