blob: 93062aba8cd711e940ec1116cf3f0e6fe7841b8e [file] [log] [blame]
// PR c++/94149 - make __is_constructible work with paren-init of aggrs.
// { dg-do compile { target c++11 } }
struct S { };
struct W {
S& r;
W(S& r_) : r(r_) {}
operator S&() { return r; }
};
S s;
W w(s);
S& s2(w);
static_assert(__is_constructible(S&, W), "");