1// Case statement value must be a compile-time integer constant 2 3void foo(float f) { 4 switch (f) { 5 case 1.5: 6 ++f; 7 } 8} 9 10