2015-05-05 Yvan Roux <yvan.roux@linaro.org>
[official-gcc.git] / gcc / testsuite / g++.dg / ext / has_nothrow_copy-3.C
blob7970044109378c29baf15840eddeca2202bea7e8
1 // PR c++/36871
2 // { dg-do run }
3 #include <cassert>
5 struct F {
6     F (const F&) throw () { }
7     template <class T> F (T) throw () { }
8 };
10 int main ()
12   assert (__has_nothrow_copy (F));