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/] [conversion/] [cast1.C] - Blame information for rev 316

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

Line No. Rev Author Line
1 301 jeremybenn
// PR c++/10841
2
 
3
int main() {
4
  class Base {
5
  public:
6
    int i, j, k;
7
    void f(); };
8
 
9
  class Derived : private Base {
10
  public:
11
    int m, n, p;
12
    void g();
13
  };
14
 
15
  Derived derived;
16
  Base &base = (Base &)derived;
17
  (int Base::*)&Derived::n;
18
  (int Derived::*)&Base::j;
19
  (void (Base::*)(void))&Derived::g;
20
  (void (Derived::*)(void))&Base::f;
21
}
22
 

powered by: WebSVN 2.1.0

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