2009-07-17 Richard Guenther <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / ext / has_nothrow_copy-2.C
blob276b11d574c61ae93174170b59b61205e14381b2
1 // PR c++/36871
2 // { dg-do "run" }
3 #include <cassert>
5 struct A { template <class T> A (T) throw (int); };
6 struct B { B (B&) throw (); template <class T> B (T) throw (int); };
8 int main ()
10   assert (__has_nothrow_copy (A));
11   assert (__has_nothrow_copy (B));