mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-30 07:14:09 +08:00
* libjava.compile/T20020529.java: New file.
From-SVN: r54039
This commit is contained in:
parent
50efa73711
commit
5549d65dfb
@ -1,3 +1,7 @@
|
||||
2002-05-29 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
|
||||
|
||||
* libjava.compile/T20020529.java: New file.
|
||||
|
||||
2002-05-27 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
|
||||
|
||||
* libjava.lang/PR6820.java: New file.
|
||||
|
23
libjava/testsuite/libjava.compile/T20020529.java
Normal file
23
libjava/testsuite/libjava.compile/T20020529.java
Normal file
@ -0,0 +1,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++);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user