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