Dead
[official-gcc.git] / gomp-20050608-branch / gcc / testsuite / g++.dg / abi / layout1.C
blob645ed6acfeeb4d6557e08748be5d31e5a8439ebd
1 // Red Hat bugzilla 64535
2 // Bug: We are allocationg stuff into the tail padding of POD class "A".
3 // { dg-do run }
5 struct A
7   int x;
8   char y;
9 };
11 struct B : public A {
12   virtual void f () {}
13   char z;
16 A a = { 21, 42 };
17 B b;
19 int
20 main (void)
22   b.x = 12;
23   b.y = 24;
24   b.z = 36;
26   A *ap = &b;
28   *ap = a;
30   return (b.z != 36);