PR c++/85553
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / nullptr12.C
blob439708205605812fd97783daa7abd790783af375
1 // { dg-do compile { target c++11 } }
3 // Test sizeof
5 static_assert(sizeof(nullptr) == sizeof(void*), "sizeof(nullptr) is wrong");
6 const decltype(nullptr) mynull = 0;
7 static_assert(sizeof(mynull) == sizeof(void*), "sizeof(nullptr) is wrong");