Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
reinterpret_cast1.C
blob: 7c0463eac55c0c4156b184ea1eb31712436226d4 [
file
] [
log
] [
blame
]
// PR c++/57869
// { dg-do compile { target c++11 } }
void
*
po
=
0
;
void
(*
pf
)()
=
reinterpret_cast
<
decltype
(
pf
)>(
po
);
static_assert
(
sizeof
(
po
)
>=
sizeof
(
pf
),
"Conversion not supported"
);