URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [abi/] [layout3.C] - Rev 693
Compare with Previous | Blame | View Log
// { dg-do run { target i?86-*-* x86_64-*-* } }
// { dg-require-effective-target ilp32 }
// { dg-options "-fabi-version=0 -w" }
struct S {
virtual void f() {}
};
struct T : virtual public S { };
struct U : public S, virtual public T {
char c[100];
};
struct V : public U, virtual public S {};
struct W : public V {
int i;
};
int main () {
W w;
if ((char*) &w.i - (char *) &w != 104)
return 1;
}