Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/cpp0x/nullptr02.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
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;