summaryrefslogtreecommitdiffstats
path: root/libjava/testsuite/libjava.compile
diff options
context:
space:
mode:
authorbryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4>2002-05-30 02:53:13 +0000
committerbryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4>2002-05-30 02:53:13 +0000
commit9df78e8a164183f8cd3f3f147149b33a98b2e9db (patch)
tree494ca6c0e3d7e848f7153eb763ded90b4b0ee453 /libjava/testsuite/libjava.compile
parentf275e6d94bc54bbcabb90d0f910cbd445bcabb85 (diff)
downloadppe42-gcc-9df78e8a164183f8cd3f3f147149b33a98b2e9db.tar.gz
ppe42-gcc-9df78e8a164183f8cd3f3f147149b33a98b2e9db.zip
* libjava.compile/T20020529.java: New file.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54039 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/testsuite/libjava.compile')
-rw-r--r--libjava/testsuite/libjava.compile/T20020529.java23
1 files changed, 23 insertions, 0 deletions
diff --git a/libjava/testsuite/libjava.compile/T20020529.java b/libjava/testsuite/libjava.compile/T20020529.java
new file mode 100644
index 00000000000..19f1ea862ac
--- /dev/null
+++ b/libjava/testsuite/libjava.compile/T20020529.java
@@ -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++);
+ }
+ }
+ }
+ }
+}
OpenPOWER on IntegriCloud