Home | History | Annotate | Download | only in jni
      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 }
     13