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