1 // REQUIRED_ARGS: -o- -w
4 Warning removed in: https://github.com/dlang/dmd/pull/15568
6 fail_compilation/warn12809.d(25): Warning: statement is not reachable
7 fail_compilation/warn12809.d(33): Warning: statement is not reachable
11 //void test_unrachable1()
16 // int x = 1; // unreachable
20 void test_unrachable2()
25 int x
= 1; // unreachable
28 void test_unrachable3()
33 int x
= 1; // unreachable
36 /********************************************/
41 fail_compilation/warn12809.d(108): Warning: statement is not reachable
42 fail_compilation/warn12809.d(115): Warning: statement is not reachable
43 fail_compilation/warn12809.d(122): Warning: statement is not reachable
44 Error: warnings are treated as errors
45 Use -wi if you wish to treat warnings only as informational.
51 alias noreturn
= typeof(*null);
75 // https://issues.dlang.org/show_bug.cgi?id=14835
85 // https://issues.dlang.org/show_bug.cgi?id=10532
89 foreach (e
; Seq
!(10, 20))
94 // lots of code follows..