Sign in
ara-mdk
/
platform
/
ndk
/
4d03c77659dd58d21e175c738b2f292686fe6a69
/
.
/
tests
/
device
/
test-stlport_static-exception
/
jni
/
has_nothrow_copy_odr.cpp
blob: 499a11e25befb15e92cfbc910c089e6299a51839 [
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
);
}