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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.dg/] [lto/] [20081217-2_0.C] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 301 jeremybenn
struct A {
2
  virtual int foo() {}
3
};
4
struct B {
5
  virtual int f() {return 1; }
6
};
7
struct C : public A, public B  {
8
  C();
9
  virtual int f() { return 0; }
10
};
11
 
12
C::C()
13
{
14
}
15
 
16
main()
17
{
18
  C c;
19
  return c.f();
20
}

powered by: WebSVN 2.1.0

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