blob: d368ae2dd7ebbba677677d9b5bb2fb1bc7a3fff0 [file] [log] [blame]
/*
TEST_OUTPUT:
---
fail_compilation/diag9358.d(12): Error: `x` must be of integral or string type, it is a `double`
fail_compilation/diag9358.d(14): Error: case must be a string or an integral constant, not `1.1`
fail_compilation/diag9358.d(15): Error: case must be a string or an integral constant, not `2.1`
---
*/
void main()
{
double x;
switch (x)
{
case 1.1: break;
case 2.1: break;
default:
}
}