From 75c6d74e1b2e9931179cc7318877003c2849db1b Mon Sep 17 00:00:00 2001 From: bryce Date: Tue, 29 Jun 2004 18:09:58 +0000 Subject: * testsuite/libjava.compile/PR16249.java: New test case. PR gcc/16249. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83869 138bc75d-0d04-0410-961f-82ee72b054a4 --- libjava/testsuite/libjava.compile/PR16249.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 libjava/testsuite/libjava.compile/PR16249.java (limited to 'libjava/testsuite/libjava.compile') diff --git a/libjava/testsuite/libjava.compile/PR16249.java b/libjava/testsuite/libjava.compile/PR16249.java new file mode 100644 index 00000000000..5495dda3430 --- /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) { + } + } + } +} -- cgit v1.2.3