1// { dg-do assemble  }
2int main ()
3{
4   int i;
5   int &ir = (int&)(int)i;	// { dg-error "" } casting rvalue to reference type
6}
7