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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [inherit/] [conv1.C] - Blame information for rev 825

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

Line No. Rev Author Line
1 149 jeremybenn
typedef struct _A A;
2
typedef struct _A B;
3
 
4
void some_function(B *b);
5
 
6
class AClass {
7
 
8
public:
9
  operator A*() { return 0;}
10
 
11
};
12
 
13
class BClass :public AClass {
14
 
15
public:
16
  operator B*() { return 0;}
17
 
18
};
19
 
20
int main(int argc, char **argv) {
21
  BClass b;
22
  some_function(b);
23
}

powered by: WebSVN 2.1.0

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