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