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