Small ChangeLog tweak.
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.law / cvt21.C
blob65cf5e87a0d62f10339c0550059c62b2ba1dc3ad
1 // { dg-do assemble  }
2 // GROUPS passed conversions
3 // cvt file
4 // Message-Id: <9307200528.AA02094@legolas>
5 // From: Mark Kuzmycz <kuzmycz@deakin.edu.au>
6 // Subject: int & conversion operator
7 // Date: Tue, 20 Jul 93 15:28:47 EST
9 class Int
11         public:
12                 Int(void);
13                 Int(int);
14                 Int(const Int&);
15         
16                 Int* copy(void) const;
17                 
18                 operator int&();
19                 
20                 Int& operator ++(void);
21                 Int& operator --(void);
22                 
23         private:
24                 int value;
27 int main()
29   Int data = 2;
30   Int test;
32   test = data * 12;
33   data += 1;
36 // UNKNOWN "FAIL"