URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
// { dg-do assemble }
|
// { dg-do assemble }
|
// GROUPS passed old-abort
|
// GROUPS passed old-abort
|
class Rational {
|
class Rational {
|
public:
|
public:
|
Rational(int v): value(v)
|
Rational(int v): value(v)
|
{ }
|
{ }
|
|
|
int value;
|
int value;
|
};
|
};
|
typedef Rational __Rational;
|
typedef Rational __Rational;
|
|
|
extern int operator>(const Rational&, const Rational&);
|
extern int operator>(const Rational&, const Rational&);
|
|
|
class V {
|
class V {
|
public:
|
public:
|
class Rational {
|
class Rational {
|
public:
|
public:
|
static int x(const __Rational& value);
|
static int x(const __Rational& value);
|
};
|
};
|
};
|
};
|
|
|
int
|
int
|
V::Rational::x(const __Rational& value)
|
V::Rational::x(const __Rational& value)
|
{
|
{
|
return value > 0;
|
return value > 0;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.