Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.old-deja / g++.law / code-gen2.C
blobe250cee7965e98be6acea3f0112242d2387ff634
1 // { dg-do run  }
2 // GROUPS passed code-generation
3 // code-gen file
4 // From: Gunther Seitz <Gunther.Seitz@regent.e-technik.tu-muenchen.dbp.de>
5 // Date:     Thu, 18 Mar 1993 10:45:29 +0100
6 // Message-ID: <93Mar18.104538met.1094@regatta.regent.e-technik.tu-muenchen.de>
9 #include <stdio.h>
11 class X {
13 public:
14     double x;
15     X () { x=3.5; }    // Here we go. This assignment fails because
16                        // of X::x being aligned on a doubleword
17                        // boundary, not a quadword one.
18     };
21 class A : public virtual X {};       // Only way to produce the
22 class B : public virtual X {};       // error is to use this
23 class C : public virtual X {};       // construct of virtual
24                                      // base classes.
26 class Y : public A, public B, public C {};
29 int main ()
31         Y y;       // To call the constructor
32         printf ("PASS\n");
33         }