Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
inh-ctor33.C
blob: 0e8520745a966b21c8e2364501c25b4fe4fcb2da [
file
] [
log
] [
blame
]
// { dg-do link { target c++11 } }
// { dg-options -fnew-inheriting-ctors }
struct
A
{
A
()
{
}
A
(
const
A
&);
// should never be called
};
struct
B
{
B
(
A
)
{
}
};
struct
C
:
B
{
using
B
::
B
;
};
int
main
()
{
C c
{
A
()};
}