gcc/testsuite/gdc.test/fail_compilation/diag5450.d
raw| 1 | /* |
| 2 | TEST_OUTPUT: |
| 3 | --- |
| 4 | fail_compilation/diag5450.d(18): Error: class `diag5450.C` cannot implicitly generate a default constructor when base class `diag5450.B` is missing a default constructor |
| 5 | --- |
| 6 | */ |
| 7 | |
| 8 | class A |
| 9 | { |
| 10 | this() { } |
| 11 | } |
| 12 | |
| 13 | class B : A |
| 14 | { |
| 15 | this(int f) {} |
| 16 | } |
| 17 | |
| 18 | class C : B |
| 19 | { |
| 20 | } |