Debian Codegraph @

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

raw
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail349.d(15): Error: function `fail349.bug6109throwing` is not `nothrow`
5 fail_compilation/fail349.d(13): Error: function `fail349.bug6109noThrow` may throw but is marked as `nothrow`
6 ---
7 */
8
9 int bug6109throwing()
10 {
11 throw new Exception("throws");
12 }
13 int bug6109noThrow() nothrow
14 {
15 auto g = [4][0 .. bug6109throwing()];
16 return 0;
17 }