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
* doc/extend.texi (Loop-Specific Pragmas): Document pragma GCC unroll.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
ext
/
has_nothrow_copy-6.C
blob
c4e0a5ce7ba5f53cce24cd91ab52558f70511d1f
1
// { dg-do run }
2
#include <cassert>
3
4
struct S {
5
S (S&) throw ();
6
S (const S&, int)
7
#if __cplusplus <= 201402L
8
throw (int) // { dg-warning "deprecated" "" { target { c++11 && { ! c++17 } } } }
9
#endif
10
;
11
};
12
13
int main ()
14
{
15
assert (__has_nothrow_copy (S));
16
}