aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/inherit/crash3.C
blob: e6094b04a64d198d5d13a981cb3234e47d151aa6 (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR c++/51326

struct A
{
  virtual int& foo(); // { dg-error "overriding" }
};

struct B : A
{
  B& foo();           // { dg-error "conflicting return type" }
};