URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [abi/] [layout3.C] - Rev 154
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;
}