[committed] Fix previously latent bug in reorg affecting cris port
[official-gcc.git] / gcc / testsuite / g++.dg / warn / Wzero-as-null-pointer-constant-5.C
blob01662f539a039318e955e76893fdfe0b4d72c7f7
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 "17: 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()) {};