Merged trunk at revision 161680 into branch.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / nullptr12.C
blob1713259f103626a89a55dfae773475bce4a686d7
1 // { dg-do compile }
2 // { dg-options "-std=c++0x" }
4 // Test sizeof
6 static_assert(sizeof(nullptr) == sizeof(void*), "sizeof(nullptr) is wrong");
7 const decltype(nullptr) mynull = 0;
8 static_assert(sizeof(mynull) == sizeof(void*), "sizeof(nullptr) is wrong");