blob: 439708205605812fd97783daa7abd790783af375 [file] [log] [blame]
// { dg-do compile { target c++11 } }
// Test sizeof
static_assert(sizeof(nullptr) == sizeof(void*), "sizeof(nullptr) is wrong");
const decltype(nullptr) mynull = 0;
static_assert(sizeof(mynull) == sizeof(void*), "sizeof(nullptr) is wrong");