Merged trunk at revision 161680 into branch.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / nullptr01.C
blobde3860c9ea417ac3dcfaa585bb59640d7c9f1da6
1 // { dg-do compile }
2 // { dg-options "-std=c++0x" }
4 // Test assignment to pointer
6 char* const cp1 = nullptr;
7 char* const cp2 = __null;
8 char* const cp3 = 0;
9 decltype(nullptr) mynull = 0;
10 char* const cp4 = mynull;