Fix test-suite fallout of default -Wreturn-type.
[official-gcc.git] / gcc / testsuite / g++.dg / warn / Wzero-as-null-pointer-constant-5.C
blob4269beda28a8ac764a52e9083bd3d1577c2fe94f
1 // PR c++/52718
2 // { dg-options "-Wzero-as-null-pointer-constant -Wno-return-type" }
4 struct foo
6   foo(void* a = 0) {};      // { dg-warning "zero as null pointer" }
7 };
9 void* fun(void* a = 0) {};  // { dg-warning "zero as null pointer" }
11 struct bar: foo
13   bar() {};
16 struct baz
18   baz(const foo& f1 = foo(),
19       void* f2 = fun()) {};