blob: c173576e2879a6d422daf48e7e5b727e73e2218a (
plain)
1
2
3
4
5
6
7
8
9
10
|
// 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 an rvalue expression of type 'void' to type" }
}
|