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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [init/] [const5.C] - Blame information for rev 307

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

Line No. Rev Author Line
1 301 jeremybenn
// PR c++/31449
2
 
3
class Foo {};
4
class Bar : public Foo {};
5
static const Foo *foo = 0;
6
 
7
static Bar *bar = static_cast(foo); // { dg-error "conversion" }
8
 
9
void func(const Foo *foo) {
10
  Bar *bar = static_cast(foo);  // { dg-error "conversion" }
11
}

powered by: WebSVN 2.1.0

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