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++.old-deja/] [g++.mike/] [p6610a.C] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 305 jeremybenn
// { dg-do run  }
2
// prms-id: 6610
3
// There is a bug in vtable thunks with multiple/virtual inheritance.
4
 
5
int fail = 1;
6
struct B;
7
struct A { virtual int f(const B*) = 0; int g(const B*); };
8
int A::g(const B* t) { return f(t); }
9
struct B : virtual A { B(); int f(const B*); B* B_this; };
10
B::B() { if (g(this)) fail = 0; }
11
int B::f(const B* t) { return t == this; }
12
struct C : B { int f(const B*); int x; };
13
int C::f(const B*) { return 0; }
14
 
15
int main() { C c; return fail; }

powered by: WebSVN 2.1.0

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