Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.old-deja / g++.jason / virtual2.C
blobffdd71c13afd85ce72485aac1c4fdf4468e23389
1 // { dg-do run  }
2 struct A {
3   virtual A* f () { return this; }
4 };
6 struct B: public A {
7   virtual B* f () { return 0; }
8 };
10 int main ()
12   A* ap = new B;
13   return (ap->f () != 0);