Add support for C++0x nullptr.
[official-gcc/constexpr.git] / gcc / testsuite / g++.dg / cpp0x / nullptr02.C
blob2272152cf730313b5049dade47853bd78cd157f4
1 // { dg-do compile }
2 // { dg-options "-std=c++0x" }
4 // Test assignment to nullptr_t
6 typedef decltype(nullptr) nullptr_t;
8 const nullptr_t np1 = nullptr;
9 const nullptr_t np2 = __null;
10 const nullptr_t np3 = 0;