blob: 436d88f743fd8c0f28b9eac79f8fbbb00b40e6f6 (
plain)
1
2
3
4
5
6
7
8
9
10
|
/* { dg-do compile } */
/* { dg-options "-O2" } */
struct A {};
struct B { virtual A foo () const; };
struct C { A foo () const; };
struct D : virtual B { A foo () const {} };
struct F : D { virtual int bar () const; };
int F::bar () const { return 0; }
A C::foo () const { return A (); }
|