Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
ext
/
has_nothrow_copy-3.C
blob: 7970044109378c29baf15840eddeca2202bea7e8 [
file
] [
log
] [
blame
]
// PR c++/36871
// { dg-do run }
#include
<cassert>
struct
F
{
F
(
const
F
&)
throw
()
{
}
template
<
class
T
>
F
(
T
)
throw
()
{
}
};
int
main
()
{
assert
(
__has_nothrow_copy
(
F
));
}