Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
reinterpret_cast2.C
blob: 5402e825aa5d1c9d56cc8f874473d370c1ab0d62 [
file
] [
log
] [
blame
]
// PR c++/89391
// { dg-do compile { target c++11 } }
struct
S
{
};
void
foo
()
{
auto
a
=
reinterpret_cast
<
S
&&>(
foo
());
// { dg-error "12:invalid cast of a prvalue expression of type 'void' to type" }
}