Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
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"
);