| 1 |
// https://issues.dlang.org/show_bug.cgi?id=23135 |
| 2 |
// EXTRA_CPP_SOURCES: test23135.cpp |
| 3 |
// REQUIRED_ARGS: -extern-std=c++11 |
| 4 |
// CXXFLAGS: -std=c++11 |
| 5 |
// DISABLED: win32 |
| 6 |
|
| 7 |
void main() |
| 8 |
{ |
| 9 |
test23135(); |
| 10 |
} |
| 11 |
|
| 12 |
extern(C++): |
| 13 |
|
| 14 |
void test23135(); |
| 15 |
|
| 16 |
class Mutable |
| 17 |
{ |
| 18 |
~this(); |
| 19 |
void func() { } |
| 20 |
} |
| 21 |
|
| 22 |
final class DeriveMutable : Mutable |
| 23 |
{ |
| 24 |
~this(); |
| 25 |
override void func() { } |
| 26 |
} |
| 27 |
|
| 28 |
class Const |
| 29 |
{ |
| 30 |
~this(); |
| 31 |
void func() const { } |
| 32 |
} |
| 33 |
|
| 34 |
final class DeriveConst : Const |
| 35 |
{ |
| 36 |
~this(); |
| 37 |
override void func() const { } |
| 38 |
} |