Commit 1c442892 by Mark Mitchell Committed by Mark Mitchell

* g++.dg/abi/layout3.C: New test.

From-SVN: r63856
parent 0530d3b0
2003-03-05 Mark Mitchell <mark@codesourcery.com>
* g++.dg/abi/layout3.C: New test.
2003-03-05 Eric Botcazou <ebotcazou@libertysurf.fr>
* gcc.c-torture/compile/20030305-1.c
......
// { dg-do run { target i?86-*-* } }
// { 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;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment