Debian Codegraph @

gcc/testsuite/g++.dg/ext/has_nothrow_copy-3.C

raw
1 // PR c++/36871
2 // { dg-do run }
3 // { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
4 #include <cassert>
5
6 struct F {
7 F (const F&) throw () { }
8 template <class T> F (T) throw () { }
9 };
10
11 int main ()
12 {
13 assert (__has_nothrow_copy (F));
14 }