1 // PR c++/49267
2 // { dg-do compile { target c++11 } }
3 
4 struct X {
5   operator int&();
6   operator int&&();
7 };
8 
9 int&&x = X();
10