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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [init/] [const5.C] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 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.