Debian Codegraph @

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

raw
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail11375.d(18): Error: constructor `fail11375.D!().D.this` is not `nothrow`
5 which calls `this`
6 fail_compilation/fail11375.d(16): Error: function `D main` may throw but is marked as `nothrow`
7 ---
8 */
9
10 class B {
11 this() {}
12 }
13
14 class D() : B {}
15
16 void main() nothrow
17 {
18 auto d = new D!()();
19 }