summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/crash21.C
blob: 62ba7f9469d5b6c258b5a43012e3ed99a5cc87b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// { dg-do assemble  }
// Origin: Gabriel Dos Reis <gdr@codesourcery.com>

struct  A {
  virtual void f(int&) const;
};

struct B : public A {
  int x;
};

void B::f(int& t) { // { dg-error "" } undeclared method
  x = t;
}