FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / crash21.C
blobdd98502c3a5c0d1489ffc088bdbb7dedc9ea6c86
1 // Build don't link:
2 // Origin: Gabriel Dos Reis <gdr@codesourcery.com>
4 struct  A {
5   virtual void f(int&) const;
6 };
8 struct B : public A {
9   int x;
12 void B::f(int& t) { // ERROR - undeclared method
13   x = t;