repo.or.cz
/
official-gcc
/
graphite-test-results.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.law
/
operators10.C
blob
fe36becedf6dea84bebf8edb105053adb39c0d07
1
// { dg-do assemble }
2
// GROUPS passed operators
3
// opr-eq file
4
// Message-Id: <9306040324.AA22954@balder.cs.wisc.edu>
5
// From: so@cs.wisc.edu (Bryan So)
6
// Subject: g++ bug
7
// Date: Thu, 3 Jun 93 22:24:13 -0500
8
9
template <class T>
10
struct Test {
11
int data;
12
Test& operator=(int i) { data = i; return *this; }
13
};
14
15
16
int main()
17
{
18
Test<int> i, j;
19
20
i = j;
21
22
return 0;
23
}