1// PR c++/36871
2// { dg-do "run" }
3#include <cassert>
4
5struct A { template <class T> A (T) throw (int); };
6struct B { B (B&) throw (); template <class T> B (T) throw (int); };
7
8int main ()
9{
10  assert (__has_nothrow_copy (A));
11  assert (__has_nothrow_copy (B));
12}
13