aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/reinterpret_cast1.C
blob: 7c0463eac55c0c4156b184ea1eb31712436226d4 (plain)
1
2
3
4
5
6
// 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");