Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.law/operators13.C

raw
1 // { dg-do assemble }
2 // GROUPS passed operators
3 // opr-eq file
4 // Message-Id: <[email protected]>
5 // From: [email protected] (Michael Spertus)
6 // Subject: g++ 2.5.4 bug : operator=
7 // Date: Thu, 18 Nov 1993 21:05:02 GMT
8
9 class T {
10 };
11
12 class EP {
13 public:
14 void operator=(T *);
15 };
16
17
18 void EP::operator=(T *) { }
19
20 int main()
21 {
22 EP ep1, ep2;
23 ep1 = ep2;
24 }