Fortran: Fix PR 47485.
[gcc.git] / gcc / testsuite / g++.dg / warn / Wzero-as-null-pointer-constant-3.C
blobed54143a0274755a65dffc17baa0880d79797327
1 // PR c++/51290
2 // { dg-options "-Wzero-as-null-pointer-constant" }
4 class A { int a; };
6 class B { int b; };
8 class C : public A, public B
10     private:
11         static void foo (A *x)
12         {
13             C *y = static_cast<C *>(x);
14             (void) y;
15         }
17         static void bar (B *x)
18         {
19             C *y = static_cast<C *>(x);
20             (void) y;
21         }