c++: constantness of call to function pointer [PR111703]
[official-gcc.git] / gcc / testsuite / g++.dg / inherit / thunk5.C
blob05dba36383d896f42f88b825c44c978a0597cc6b
1 // PR c++/21123
3 struct A
5   A(const A &a);
6   const A& operator=(const A& a);
7 };
9 struct B
11   virtual A f(A);
14 struct C : virtual B
16   virtual A f(A);
19 A C::f(A a) 
21   return a;