gcc/testsuite/gdc.test/fail_compilation/fail231.d
raw| 1 | /* |
| 2 | TEST_OUTPUT: |
| 3 | --- |
| 4 | fail_compilation/fail231.d(15): Error: class `fail231.Derived` cannot implicitly generate a default constructor when base class `fail231.Base` is missing a default constructor |
| 5 | --- |
| 6 | */ |
| 7 | |
| 8 | // https://issues.dlang.org/show_bug.cgi?id=951 |
| 9 | // Missing line number: no constructor provided for a class derived from a class with no default constructor |
| 10 | class Base |
| 11 | { |
| 12 | this(int x) {} |
| 13 | } |
| 14 | |
| 15 | class Derived : Base |
| 16 | { |
| 17 | } |