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
FSF GCC merge 02/23/03
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
offset2.C
blob
1ce6386446d39897c261900324c846faf4658f18
1
// PRMS Id: 5070 (testcase 2)
2
3
int status = 1;
4
5
struct foo {
6
foo& operator= (const foo&) { status = 0; return *this; }
7
};
8
9
struct xx {
10
foo a;
11
};
12
13
struct yy : public xx {
14
yy(foo& a) { xx::a = a; }
15
};
16
17
int main()
18
{
19
foo f;
20
yy y (f);
21
22
return status;
23
}