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++.brendan/] [crash46.C] - Rev 823

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

// { dg-do assemble  }
// GROUPS passed old-abort
class Rational {
public:
    Rational(int v): value(v)
        {  }

    int value;
};
typedef Rational __Rational;

extern int operator>(const Rational&, const Rational&);

class V {
public:
    class Rational {
    public:
        static int x(const __Rational& value);
    };
};

int
V::Rational::x(const __Rational& value)
{
    return value > 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.