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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [lto/] [20081217-2_0.C] - Blame information for rev 751

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

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