Sign in
gnu
/
gcc
/
refs/tags/basepoints/gcc-13
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
noexcept76.C
blob: fc816477e57bf69713bb6d5af760c894e9d8bd27 [
file
] [
log
] [
blame
]
// PR c++/70077
// { dg-do compile { target c++11 } }
struct
B
{
B
(
int
)
noexcept
{
}
virtual
void
f
()
=
0
;
};
struct
D
:
public
B
{
using
B
::
B
;
D
()
noexcept
(
noexcept
(
D
{
42
})):
B
{
42
}
{
}
void
f
()
override
{
}
};
int
main
()
{
B
*
b
=
new
D
{};
}