]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/g++.dg/cpp0x/nullptr01.C
Add support for C++0x nullptr.
[thirdparty/gcc.git] / gcc / testsuite / g++.dg / cpp0x / nullptr01.C
1 // { dg-do compile }
2 // { dg-options "-std=c++0x" }
3
4 // Test assignment to pointer
5
6 char* const cp1 = nullptr;
7 char* const cp2 = __null;
8 char* const cp3 = 0;