[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git] / gcc / testsuite / g++.dg / ext / has_nothrow_copy-5.C
blobe92801d61bfd1c1eedb4bbbfdba27b26c0a039f4
1 // PR c++/36872
2 // { dg-do run }
3 #include <cassert>
5 struct S {
6     S (const S&) throw ();
7     S (int)
8 #if __cplusplus <= 201402L
9     throw (int)                 // { dg-warning "deprecated" "" { target { c++11 && { ! c++17 } } } }
10 #endif
11     ;
14 int main ()
16   assert (__has_nothrow_copy (S));