Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/cpp0x/nullptr02.C @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
line wrap: on
line source
// { dg-do compile { target c++11 } } // Test assignment to nullptr_t typedef decltype(nullptr) nullptr_t; const nullptr_t np1 = nullptr; const nullptr_t np2 = __null; const nullptr_t np3 = 0; const nullptr_t np4 = np1; const nullptr_t np5 = np2; const nullptr_t np6 = np3; const nullptr_t np7 = np4; const nullptr_t np8 = np5; const nullptr_t np9 = np6;