repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR c++/65051
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
ext
/
has_nothrow_assign_odr.C
blob
c2e99ef5444213b756afda0c44e00954643b0d03
1
// PR c++/36870
2
// { dg-do run }
3
#include <cassert>
4
5
struct S { const S& operator= (const S&); };
6
7
bool f ();
8
9
int main ()
10
{
11
assert (__has_nothrow_assign (S) == f ());
12
}
13
14
const S& S::operator= (const S&) { }
15
16
bool f () { return __has_nothrow_assign (S); }