☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
rvalue3.C
☽
☼
gcc/testsuite/g++.old-deja/g++.jason/rvalue3.C
code
plain
raw
1
// { dg-do assemble }
2
int main ()
3
{
4
int i;
5
int &ir = (int&)(int)i; // { dg-error "14:invalid cast of a prvalue expression" } casting rvalue to reference type
6
}