URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [conversion/] [to-virtual-base-1.C] - Rev 301
Compare with Previous | Blame | View Log
// Copyright (C) 2002 Free Software Foundation
// Contributed by Gabriel Dos Reis <gdr@integrable-solutions.net>
struct A {
virtual void f(const A* a) = 0;
};
struct B : virtual A {
virtual void f(const A* a);
};
void B::f(const A* a)
{
static_cast<const B&>(*a); // { dg-error "" }
}