blob: 05b1e1d9ad9306a1c955a0e046da7d18fc0f0362 [file] [log] [blame]
// PR c++/106784
// { dg-do compile { target c++11 } }
// Make sure we don't reject this at runtime by trying to instantiate
// something that would be ill-formed.
struct A;
struct B { template<class T> B(const T&) noexcept { T::nonexistent; } };
static_assert(__is_nothrow_convertible(const A&, B), "");