OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.dg/] [conversion/] [to-virtual-base-1.C] - Blame information for rev 779

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 301 jeremybenn
// Copyright (C) 2002 Free Software Foundation
2
// Contributed by Gabriel Dos Reis 
3
 
4
struct A {
5
  virtual void f(const A* a) = 0;
6
};
7
 
8
struct B : virtual A {
9
  virtual void f(const A* a);
10
};
11
 
12
void B::f(const A* a)
13
{
14
  static_cast(*a);             // { dg-error "" }
15
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.