OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.law/] [code-gen2.C] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 305 jeremybenn
// { dg-do run  }
2
// GROUPS passed code-generation
3
// code-gen file
4
// From: Gunther Seitz 
5
// Date:     Thu, 18 Mar 1993 10:45:29 +0100
6
// Message-ID: <93Mar18.104538met.1094@regatta.regent.e-technik.tu-muenchen.de>
7
 
8
 
9
#include 
10
 
11
class X {
12
 
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
    };
19
 
20
 
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.
25
 
26
class Y : public A, public B, public C {};
27
 
28
 
29
int main ()
30
{
31
        Y y;       // To call the constructor
32
        printf ("PASS\n");
33
        }
34
 
35
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.