// { dg-do compile }
// PR c++/20008
// We failed to compile this because CFG cleanup left the switch
// statement intact, whereas expand_case expected at least one
// in-range case to remain.
type
// { dg-options "-O1" }
template
int f(T t) {
switch (t) {
case 1:
return 5;
case 2:
return 6;
case 3:
return -4;
case 4:
return 8;
case 5:
return 12;
c