repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git]
/
old-autovect-branch
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
opeq3.C
blob
1267fafbe4928008609b44e68769a2bd794a4d25
1
// { dg-do assemble }
2
// Bug: g++ generates code for assignment in invalid situations.
3
4
class X { // { dg-error "assignment" }
5
int& a;
6
public:
7
X(int& i): a(i) { };
8
};
9
10
void foo ()
11
{
12
int one=1, two=2;
13
X a(one), b(two);
14
a = b; // { dg-error "synthesized" }
15
}