Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
ext
/
has_nothrow_copy_odr.C
blob: 573fd2f80c85397aa62ea6b4e2bf0420ea6c3ee3 [
file
] [
log
] [
blame
]
// PR c++/36870
// { dg-do run }
#include
<cassert>
struct
S
{
S
(
const
S
&);
};
bool
f
();
int
main
()
{
assert
(
__has_nothrow_copy
(
S
)
==
f
());
}
S
::
S
(
const
S
&)
{
}
bool
f
()
{
return
__has_nothrow_copy
(
S
);
}