]> gcc.gnu.org Git - gcc.git/blame - gcc/testsuite/g++.dg/cpp0x/rv-cast5.C
PR c++/92590 - wrong handling of inherited default ctor.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / rv-cast5.C
CommitLineData
16dc6b17
JM
1// { dg-do compile { target c++11 } }
2
3template <typename T>
4struct hold {
5 T value;
6 constexpr T&& operator()() && { return static_cast<T&&>(value); }
7};
8
9int main()
10{
992931ba 11 hold<bool&&>{static_cast<bool>(42)}();
16dc6b17 12}
This page took 3.124802 seconds and 5 git commands to generate.