diff options
Diffstat (limited to 'libjava/testsuite/libjava.compile/PR16249.java')
-rw-r--r-- | libjava/testsuite/libjava.compile/PR16249.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/libjava/testsuite/libjava.compile/PR16249.java b/libjava/testsuite/libjava.compile/PR16249.java new file mode 100644 index 0000000..5495dda --- /dev/null +++ b/libjava/testsuite/libjava.compile/PR16249.java @@ -0,0 +1,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) {
+ }
+ }
+ }
+}
|