Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.dg / inherit / using2.C
blob19f06e9cc02230a45f488804b10a51ca882869f7
1 // { dg-do run }
3 // Copyright (C) 2002 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 15 Sep 2002 <nathan@codesourcery.com>
6 // PR 7919. Methods found via using decls didn't have their this
7 // pointers converted to the final base type.
9 struct Base {
10   int m;
11   protected:
12   void *Return () { return this; }
15 struct Derived : Base {
16   using Base::Return;
17   virtual ~Derived () {}
20 int main ()
22   Derived d;
23   
24   return static_cast <Base *> (&d) != d.Return ();