Fix type in the changelog entry,
[official-gcc.git] / gcc / testsuite / g++.dg / ipa / pr60640-2.C
blobc6e614cc0047b5bd3f58d3e1e2a3ce56c1cccccc
1 // { dg-do compile }
2 // { dg-options "-O3" }
4 struct B { virtual unsigned f () const; };
5 struct C { virtual void f (); };
6 struct F { virtual unsigned f (bool) const; ~F (); };
7 struct J : C, F {};
8 struct G : J { unsigned f (bool) const { return 0; } };
9 struct H : B
11   H (int);
12   unsigned f () const { return ((const F &) h).f (0); }
13   G h;
15 H h (0);