Merge from trunk @ 138209
[official-gcc.git] / gcc / testsuite / g++.dg / ext / has_nothrow_copy-5.C
blob051675c4d00d5c2b86e976322d0b3f7abbf35301
1 // PR c++/36872
2 // { dg-do "run" }
3 #include <cassert>
5 struct S {
6     S (const S&) throw ();
7     S (int) throw (int);
8 };
10 int main ()
12   assert (__has_nothrow_copy (S));