(root)/
gcc-13.2.0/
gcc/
testsuite/
gdc.test/
fail_compilation/
diag4540.d
/*
TEST_OUTPUT:
---
fail_compilation/diag4540.d(11): Error: `x` must be of integral or string type, it is a `float`
---
*/

void main()
{
    float x;
    switch (x)
    {
        default:
    }
}