☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
rv-cast5.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/rv-cast5.C
code
plain
raw
1
// { dg-do compile { target c++11 } }
2
3
template <typename T>
4
struct hold {
5
T value;
6
constexpr T&& operator()() && { return static_cast<T&&>(value); }
7
};
8
9
int main()
10
{
11
hold<bool&&>{static_cast<bool>(42)}();
12
}