Debian Codegraph @

gcc/testsuite/gdc.test/fail_compilation/diag4540.d

raw
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/diag4540.d(11): Error: `x` must be of integral or string type, it is a `float`
5 ---
6 */
7
8 void main()
9 {
10 float x;
11 switch (x)
12 {
13 default:
14 }
15 }