blob: 5cb4022afa6d00ad8c0716764f168fc17318717e [file] [log] [blame]
// 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" }
}