OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* lib/g++-dg.exp (g++-dg-test): Add "repo" option.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
opeq3.C
1
// { dg-do assemble }
2
// Bug: g++ generates code for assignment in invalid situations.
3
4
class X {
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 "" } no assignment semantics defined
15
}