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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.robertl/] [eb51.C] - Rev 823

Go to most recent revision | Compare with Previous | Blame | View Log

// { dg-do assemble  }
typedef unsigned long   Xv_opaque;

class DynaString
{
public:
    DynaString();
    DynaString( const DynaString& dynaStr );
    DynaString( const long n );
    ~DynaString();

    int operator ==( const char* const string ) const;
};

class DDE_Defaults
{
public:
        DynaString      GetHost();
        DynaString      GetService();
        DynaString      GetDatabase();
};

extern DDE_Defaults* ddeDefaults;

void
f()
{
        DynaString tempHost, tempService, tempDatabase;
        if(     (tempHost = ddeDefaults->GetHost()) == 0
                || (tempService = ddeDefaults->GetService()) == 0
                || (tempDatabase = ddeDefaults->GetDatabase()) == 0
        )
        {
        }
}

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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