mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
55 lines
709 B
D
55 lines
709 B
D
// https://issues.dlang.org/show_bug.cgi?id=22351
|
|
// EXTRA_CPP_SOURCES: test22351.cpp
|
|
// REQUIRED_ARGS: -de -extern-std=c++11
|
|
// CXXFLAGS: -std=c++11
|
|
// DISABLED: win32
|
|
|
|
extern(C++) class A22351
|
|
{
|
|
int f()
|
|
{
|
|
return 1;
|
|
}
|
|
|
|
int g(int*)
|
|
{
|
|
return 3;
|
|
}
|
|
|
|
int h()
|
|
{
|
|
return 5;
|
|
}
|
|
|
|
int h() const
|
|
{
|
|
return 7;
|
|
}
|
|
}
|
|
|
|
extern(C++) class B22351 : A22351
|
|
{
|
|
alias f = A22351.f;
|
|
alias g = A22351.g;
|
|
alias h = A22351.h;
|
|
|
|
int f() const
|
|
{
|
|
return 2;
|
|
}
|
|
|
|
int g(const(int)*)
|
|
{
|
|
return 4;
|
|
}
|
|
|
|
override int h() const
|
|
{
|
|
return 6;
|
|
}
|
|
}
|
|
|
|
extern(C++) B22351 createB()
|
|
{
|
|
return new B22351;
|
|
}
|