aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.law/operators10.C
blob: fe4f13d4b99129eabd9a3229cf016d6137a43bfb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Build don't link: 
// 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; }
};


main()
{
    Test<int> i, j;

    i = j;

    return 0;
}