2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.dg / conversion / to-virtual-base-1.C
blob3fa8e418e87917f5bc997666935b63fc17ce63c7
1 // Copyright (C) 2002 Free Software Foundation
2 // Contributed by Gabriel Dos Reis <gdr@integrable-solutions.net>
4 struct A {
5   virtual void f(const A* a) = 0;
6 };
8 struct B : virtual A {
9   virtual void f(const A* a);
12 void B::f(const A* a)
14   static_cast<const B&>(*a);             // { dg-error "" }