URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 305 |
Rev 338 |
// { dg-do assemble }
|
// { dg-do assemble }
|
// GROUPS passed conversions
|
// GROUPS passed conversions
|
// cvt file
|
// cvt file
|
// Message-Id: <9307200528.AA02094@legolas>
|
// Message-Id: <9307200528.AA02094@legolas>
|
// From: Mark Kuzmycz
|
// From: Mark Kuzmycz
|
// Subject: int & conversion operator
|
// Subject: int & conversion operator
|
// Date: Tue, 20 Jul 93 15:28:47 EST
|
// Date: Tue, 20 Jul 93 15:28:47 EST
|
|
|
class Int
|
class Int
|
{
|
{
|
public:
|
public:
|
Int(void);
|
Int(void);
|
Int(int);
|
Int(int);
|
Int(const Int&);
|
Int(const Int&);
|
|
|
Int* copy(void) const;
|
Int* copy(void) const;
|
|
|
operator int&();
|
operator int&();
|
|
|
Int& operator ++(void);
|
Int& operator ++(void);
|
Int& operator --(void);
|
Int& operator --(void);
|
|
|
private:
|
private:
|
int value;
|
int value;
|
};
|
};
|
|
|
int main()
|
int main()
|
{
|
{
|
Int data = 2;
|
Int data = 2;
|
Int test;
|
Int test;
|
|
|
test = data * 12;
|
test = data * 12;
|
data += 1;
|
data += 1;
|
}
|
}
|
|
|
// UNKNOWN "FAIL"
|
// UNKNOWN "FAIL"
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.