summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/inherit/thunk5.C
blob: 05dba36383d896f42f88b825c44c978a0597cc6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// PR c++/21123

struct A
{
  A(const A &a);
  const A& operator=(const A& a);
};

struct B
{
  virtual A f(A);
};

struct C : virtual B
{
  virtual A f(A);
};

A C::f(A a) 
{
  return a;
}