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++/85553
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
ext
/
has_nothrow_assign_odr.C
blob
594d3a98672da5229fd9a3cacbe5e09016fd998c
1
// PR c++/36870
2
// { dg-do run }
3
4
5
#include <cassert>
6
7
struct S { const S& operator= (const S&); };
8
9
bool f ();
10
11
int main ()
12
{
13
assert (__has_nothrow_assign (S) == f ());
14
return 0;
15
}
16
17
const S& S::operator= (const S&a) { return a; }
18
19
bool f () { return __has_nothrow_assign (S); }