FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / virtual2.C
blobef42f8b19b7d52ccebf79612db24ad943724f67b
1 struct A {
2   virtual A* f () { return this; }
3 };
5 struct B: public A {
6   virtual B* f () { return 0; }
7 };
9 int main ()
11   A* ap = new B;
12   return (ap->f () != 0);