summaryrefslogtreecommitdiff
path: root/libjava/testsuite/libjava.compile/T20020529.java
blob: 19f1ea862ac17ff00150c2fa7892195345a71cd5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
public class T20020529
{
  public void checkXMLLangAttributeValue(String lang)
  {
      int offset = -1;
      if (lang.length() >= 2) {
          char ch0 = lang.charAt(0);
      }
      if (offset > 0) {
          char ch = lang.charAt(offset++);
          if (ch != '-') {
              offset = -1;
          } else {
              while (true)
	      {
                if (ch == '-')
                  ch = lang.charAt(offset++);
                ch = lang.charAt(offset++);
              }
          }
      }
  }
}