summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/torture/pr47714.C
blob: 4ff2eeef0a46447784d6e1711e0baab32a3429e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
struct A { virtual ~A () {} };
struct B { virtual ~B () {} };
struct C { virtual const A *foo (int) const = 0; };
struct E : public B, public A { };
struct F : public C
{
  virtual const E *foo (int) const;
};
void bar (int &);

const E *
F::foo (int x) const
{
  bar (x);
  return __null;
}