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/invoke.texi: Document -std=c++17 and -std=gnu++17 and document
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
ext
/
has_nothrow_copy-4.C
blob
63e67331ec808b1bb20520df044f5401fb6429cd
1
// PR c++/36872
2
// { dg-do run }
3
#include <cassert>
4
5
struct S {
6
S (const S&) throw ();
7
S (...)
8
#if __cplusplus <= 201402L
9
throw (int) // { dg-warning "deprecated" "" { target { c++11 && { ! c++17 } } } }
10
#endif
11
;
12
};
13
14
int main ()
15
{
16
assert (__has_nothrow_copy (S));
17
}