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-7.C
blob
076f8a31ff645c66e2fbb238b558f011f5389d99
1
// { dg-do run { target c++11 } }
2
#include <cassert>
3
4
struct S {
5
S (const S&) throw ();
6
S (S&&)
7
#if __cplusplus <= 201402L
8
throw (int) // { dg-warning "deprecated" "" { target { ! c++17 } } }
9
#endif
10
;
11
};
12
13
int main ()
14
{
15
assert (__has_nothrow_copy (S));
16
}