OSDN Git Service

* testsuite/libjava.compile/PR16249.java: New test case. PR
authorbryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 29 Jun 2004 18:09:58 +0000 (18:09 +0000)
committerbryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 29 Jun 2004 18:09:58 +0000 (18:09 +0000)
gcc/16249.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83869 138bc75d-0d04-0410-961f-82ee72b054a4

libjava/ChangeLog
libjava/testsuite/libjava.compile/PR16249.java [new file with mode: 0644]

index e88ef33..2c43ace 100644 (file)
@@ -1,7 +1,10 @@
+2004-06-29  Bryce McKinlay  <mckinlay@redhat.com>
+
+       * testsuite/libjava.compile/PR16249.java: New test case. PR gcc/16249.
+
 2004-06-28  Bryce McKinlay  <mckinlay@redhat.com>
 
-       * testsuite/libjava.jacks/jacks.xfail: Remove
-       8.1.3-superclass-6.
+       * testsuite/libjava.jacks/jacks.xfail: Remove 8.1.3-superclass-6.
 
 2004-06-28  Jerry Quinn  <jlquinn@optonline.net>
 
diff --git a/libjava/testsuite/libjava.compile/PR16249.java b/libjava/testsuite/libjava.compile/PR16249.java
new file mode 100644 (file)
index 0000000..5495dda
--- /dev/null
@@ -0,0 +1,18 @@
+// Regression test for PR java/16249.\r
+\r
+class PR16249\r
+{\r
+    static void bug(byte[] iCode, int pc)\r
+    {\r
+        while (pc < 100) {\r
+            try {\r
+                switch (iCode[pc] & 0xff) {\r
+                    case 666:\r
+                        iCode[++pc] = 1;\r
+                }\r
+            }\r
+            catch (Throwable ex) {\r
+            }\r
+        }\r
+    }\r
+}\r