blob: 65cf5e87a0d62f10339c0550059c62b2ba1dc3ad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
// { 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"
|