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
This commit is contained in:
Mark Mitchell 2003-04-16 20:39:12 +00:00 committed by Mark Mitchell
parent 1cdbd6309a
commit f2d80e7e81
4 changed files with 36 additions and 8 deletions

View file

@ -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:
;
}
}
}