blob: 1713259f103626a89a55dfae773475bce4a686d7 [file] [log] [blame]
// { dg-do compile }
// { dg-options "-std=c++0x" }
// 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");