[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git] / gcc / testsuite / g++.dg / ext / has_nothrow_constructor-2.C
blob8123fe93d1c2b52412c347cd77cb2b67d3472c24
1 // PR c++/55842
2 // { dg-do compile { target c++11 } }
4 template <class=void> struct number {
5   number() noexcept(noexcept(0)) { }
6 };
7 const int z=__has_nothrow_constructor(number<>);