summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/rvalue3.C
blob: 58cdad5d27c00a023c1ef4fd8b3e918a6001c555 (plain)
1
2
3
4
5
6
// { dg-do assemble  }
int main ()
{
   int i;
   int &ir = (int&)(int)i;	// { dg-error "" } casting rvalue to reference type
}