blob: a97c7814ce58fcf6f901e4f90190c2179ef75407 [file] [log] [blame]
// PR c++/65168
// { dg-do compile { target c++11 } }
// { dg-options "-Waddress -Wno-return-type" }
// We shouldn't warn in unevaluated context about the address of a reference
// always being true.
template <class T, class U>
auto f(U&& u) -> decltype(T(u)) { }
int main()
{
bool ar[4];
f<bool>(ar);
}