URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [abi/] [layout3.C] - Rev 307
Go to most recent revision | 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;
}
Go to most recent revision | Compare with Previous | Blame | View Log