Fix type in the changelog entry,
[official-gcc.git] / gcc / testsuite / g++.dg / ipa / pr65465.C
blob436d88f743fd8c0f28b9eac79f8fbbb00b40e6f6
1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
4 struct A {};
5 struct B { virtual A foo () const; };
6 struct C { A foo () const; };
7 struct D : virtual B { A foo () const {} };
8 struct F : D { virtual int bar () const; };
9 int F::bar () const { return 0; }
10 A C::foo () const { return A (); }