1// Bug: the switch fails on the Alpha because folding ef - 1 fails. 2 3enum foo { one=1, thirty=30 }; 4 5int f (enum foo ef) 6{ 7 switch (ef) 8 { 9 case one: 10 case thirty: 11 return 0; 12 default: 13 return 1; 14 } 15} 16 17int main () 18{ 19 return f (one); 20} 21