(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
cpp0x/
Wzero-as-null-pointer-constant-2.C
// PR c++/56373
// { dg-do compile { target c++11 } }
// { dg-options "-Wzero-as-null-pointer-constant" }

struct shared_ptr
{
  shared_ptr(decltype(nullptr));
};

void f()
{
  shared_ptr a = 0;  // { dg-warning "zero as null pointer" }
  shared_ptr b(0);   // { dg-warning "zero as null pointer" }
  shared_ptr c{0};   // { dg-warning "zero as null pointer" }
}