URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.law/] [cvt21.C] - Rev 149
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do assemble }
// GROUPS passed conversions
// cvt file
// Message-Id: <9307200528.AA02094@legolas>
// From: Mark Kuzmycz <kuzmycz@deakin.edu.au>
// Subject: int & conversion operator
// Date: Tue, 20 Jul 93 15:28:47 EST
class Int
{
public:
Int(void);
Int(int);
Int(const Int&);
Int* copy(void) const;
operator int&();
Int& operator ++(void);
Int& operator --(void);
private:
int value;
};
int main()
{
Int data = 2;
Int test;
test = data * 12;
data += 1;
}
// UNKNOWN "FAIL"
Go to most recent revision | Compare with Previous | Blame | View Log