URL
https://opencores.org/ocsvn/scarts/scarts/trunk
Subversion Repositories scarts
[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.law/] [operators10.C] - Rev 12
Compare with Previous | Blame | View Log
// { dg-do assemble }
// GROUPS passed operators
// opr-eq file
// Message-Id: <9306040324.AA22954@balder.cs.wisc.edu>
// From: so@cs.wisc.edu (Bryan So)
// Subject: g++ bug
// Date: Thu, 3 Jun 93 22:24:13 -0500
template <class T>
struct Test {
int data;
Test& operator=(int i) { data = i; return *this; }
};
int main()
{
Test<int> i, j;
i = j;
return 0;
}