// PR c++/36871 // { dg-do run } // { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } } #include struct F { F (const F&) throw () { } template F (T) throw () { } }; int main () { assert (__has_nothrow_copy (F)); }