Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
rvalue3.C
blob: 77969bc60eecb30d56a4e29bacf20e61d7eb5b34 [
file
] [
log
] [
blame
]
// { dg-do assemble }
int
main
()
{
int
i
;
int
&
ir
=
(
int
&)(
int
)
i
;
// { dg-error "14:invalid cast of a prvalue expression" } casting rvalue to reference type
}