blob: 13d7cd2c0019a23054d98c5cfbe997d70e671213 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// PR c++/65168
// { dg-do compile { target c++11 } }
// { dg-options -Waddress }
// 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);
}
|