OSDN Git Service

PR c++/51107
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / cpp0x / nullptr12.C
1 // { dg-do compile }
2 // { dg-options "-std=c++0x" }
3
4 // Test sizeof
5
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");