PR middle-end/26557
commita4047043178d090966d1e001b8560929d0d59c9b
authorsayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 13 Mar 2006 23:47:47 +0000 (13 23:47 +0000)
committersayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 13 Mar 2006 23:47:47 +0000 (13 23:47 +0000)
treec4689c459a59af36095a53e46897d7983e27ada0
parenta8bf5f4aae5cf8ea651fb541018dbe454f7d01e5
PR middle-end/26557
* stmt.c (emit_case_nodes): Handle the case where the index is a
CONST_INT, where the comparison mode is specified by the index type.

* gcc.c-torture/compile/switch-1.c: New test case.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@112032 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/stmt.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/switch-1.c [new file with mode: 0644]