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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-6.8/] [gdb/] [testsuite/] [gdb.cp/] [casts.cc] - Blame information for rev 157

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 24 jeremybenn
struct A
2
{
3
  int a;
4
  A (int aa): a (aa) {}
5
};
6
 
7
struct B: public A
8
{
9
  int b;
10
  B (int aa, int bb): A (aa), b(bb) {}
11
};
12
 
13
int
14
main (int argc, char **argv)
15
{
16
  A *a = new B(42, 1729);
17
  B *b = (B *) a;
18
 
19
  return 0;  /* breakpoint spot: casts.exp: 1 */
20
}

powered by: WebSVN 2.1.0

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