diff options
author | Mark Mitchell <mark@codesourcery.com> | 2003-04-16 20:39:12 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2003-04-16 20:39:12 +0000 |
commit | f2d80e7e8132037e56bdd430ffaf50a9dfa71593 (patch) | |
tree | 545acfb6d943c6885a63e73a9b1b8a6b921f7172 /libjava | |
parent | 1cdbd6309a9c08a9bbb6cb79ffea4ac10228fe74 (diff) | |
download | gcc-f2d80e7e8132037e56bdd430ffaf50a9dfa71593.zip gcc-f2d80e7e8132037e56bdd430ffaf50a9dfa71593.tar.gz gcc-f2d80e7e8132037e56bdd430ffaf50a9dfa71593.tar.bz2 |
re PR middle-end/8866 (Bug in switch statement code generation -- missing label)
PR middle-end/8866
* cfgtrl.c (try_redirect_by_replacing_jump): Do not delete
jumptables.
PR middle-end/8866
* libjava.lang/PR8866.java: New test.
From-SVN: r65698
Diffstat (limited to 'libjava')
-rw-r--r-- | libjava/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | libjava/testsuite/libjava.lang/PR8866.java | 22 |
2 files changed, 27 insertions, 0 deletions
diff --git a/libjava/testsuite/ChangeLog b/libjava/testsuite/ChangeLog index 2ec01f3..96b3930 100644 --- a/libjava/testsuite/ChangeLog +++ b/libjava/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2003-04-16 Mark Mitchell <mark@codesourcery.com> + + PR middle-end/8866 + * libjava.lang/PR8866.java: New test. + 2003-04-16 Andrew Haley <aph@redhat.com> * libjava.lang/Throw_2.java (main): Make a successful test produce diff --git a/libjava/testsuite/libjava.lang/PR8866.java b/libjava/testsuite/libjava.lang/PR8866.java new file mode 100644 index 0000000..fa62066 --- /dev/null +++ b/libjava/testsuite/libjava.lang/PR8866.java @@ -0,0 +1,22 @@ +public class PR8866 +{ + public static void main (String args[]) + { + String attTypeString = ""; + + switch (args.length) { + case 1: + attTypeString = "string"; + case 4: + attTypeString = "ID";; + case 5: + attTypeString = "IDREF";; + case 6: + attTypeString = "NMTOKEN";; + case 7: + attTypeString = "NOTATION";; + default: + ; + } + } +} |