* doc/invoke.texi: Document -std=c++17 and -std=gnu++17 and document
[official-gcc.git] / gcc / testsuite / g++.dg / ext / has_nothrow_copy-7.C
blob076f8a31ff645c66e2fbb238b558f011f5389d99
1 // { dg-do run { target c++11 } }
2 #include <cassert>
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     ;
13 int main ()
15   assert (__has_nothrow_copy (S));