Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git] / gcc / testsuite / g++.dg / ext / has_nothrow_copy-7.C
bloba85224c3abcc980ad5950b2bd07b72784f4612ed
1 // { dg-do "run" }
2 // { dg-options "-std=c++0x" }
3 #include <cassert>
5 struct S {
6     S (const S&) throw ();
7     S (S&&) throw (int);
8 };
10 int main ()
12   assert (__has_nothrow_copy (S));