1 // { dg-do compile { target c++11 } }
2 
3 template <typename T>
4 struct hold {
5   T value;
operatorhold6   constexpr T&& operator()() && { return static_cast<T&&>(value); }
7 };
8 
main()9 int main()
10 {
11   hold<bool&&>{static_cast<bool>(42)}();
12 }
13