OSDN Git Service

PR java/43504
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / ext / has_nothrow_copy-2.C
1 // PR c++/36871
2 // { dg-do "run" }
3 #include <cassert>
4
5 struct A { template <class T> A (T) throw (int); };
6 struct B { B (B&) throw (); template <class T> B (T) throw (int); };
7
8 int main ()
9 {
10   assert (__has_nothrow_copy (A));
11   assert (__has_nothrow_copy (B));
12 }