MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / b16967.d
blob7a2c3e4685fddbc38a38fe12177933f3e9a5e8b0
1 /*
2 * TEST_OUTPUT:
3 ---
4 fail_compilation/b16967.d(15): Error: switch case fallthrough - use 'goto default;' if intended
5 fail_compilation/b16967.d(25): Error: switch case fallthrough - use 'goto default;' if intended
6 ---
7 */
8 int foo(int x)
9 in
11 switch (x)
13 case 1:
14 assert(x != 0);
15 default:
16 break;
19 out(v)
21 switch(v)
23 case 42:
24 assert(x != 0);
25 default:
26 break;
31 return 42;