3 // Copyright (C) 2005 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 17 Oct 2005 <nathan@codesourcery.com>
6 // PR 24386:Wrong virtual function called
7 // Origin: Scott Snyder snyder@fnal.gov
11 virtual int Foo () { return 1; }
15 virtual int Foo () { return 2; }
21 if (static_cast<A*>(a)->A::Foo () != 1)
23 if (static_cast<A*>(a)->Foo () != 2)