Debian Codegraph @

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

raw
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail13123.d(9): Error: `fail13123.test`: `in` contract may throw but function is marked as `nothrow`
5 fail_compilation/fail13123.d(9): Error: `fail13123.test`: `out` contract may throw but function is marked as `nothrow`
6 ---
7 */
8
9 void test() nothrow
10 in
11 {
12 throw new Exception(null);
13 }
14 out
15 {
16 throw new Exception(null);
17 }
18 do
19 {
20 }