Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/DRs/dr1423.C @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | |
children |
line wrap: on
line source
// DR 1423 - Convertibility of nullptr to bool. // { dg-do compile { target c++11 } } bool b = nullptr; // { dg-error "converting to .bool. from .std::nullptr_t. requires direct-initialization" } bool b2(nullptr); bool b3{nullptr}; bool b4 = { nullptr }; // { dg-error "converting to .bool. from .std::nullptr_t. requires direct-initialization" }