summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/inherit/thunk9.C
blob: 9eb9999f340c21adde4837367366e960892da8d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// PR tree-optimization/37095
// { dg-options "-O" }

struct A
{
  virtual A *foo ();
};

struct B : virtual A
{
  virtual B *foo () { return 0; }
};

B b;