summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/covar1.C
blob: 217f0171442a5d3ad073c24650afd0665ec8b285 (plain)
1
2
3
4
5
6
7
8
9
10
// { dg-do assemble  }
// Origin: Jason Merrill <jason@cygnus.com>

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

struct B: public A {
  B& f();
};