PR c++/65051
[official-gcc.git] / gcc / testsuite / g++.dg / ext / has_nothrow_copy-7.C
blob10891b6b59279b02c2ff413dbdbae3f8767819da
1 // { dg-do run { target c++11 } }
2 #include <cassert>
4 struct S {
5     S (const S&) throw ();
6     S (S&&) throw (int);
7 };
9 int main ()
11   assert (__has_nothrow_copy (S));