1 // PR c++/56373
2 // { dg-do compile { target c++11 } }
3 // { dg-options "-Wzero-as-null-pointer-constant" }
4 
5 struct shared_ptr
6 {
7   shared_ptr(decltype(nullptr));
8 };
9 
f()10 void f()
11 {
12   shared_ptr a = 0;  // { dg-warning "zero as null pointer" }
13   shared_ptr b(0);   // { dg-warning "zero as null pointer" }
14   shared_ptr c{0};   // { dg-warning "zero as null pointer" }
15 }
16