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
fix implicit int
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
offset2.C
1
// PRMS Id: 5070 (testcase 2)
2
3
int status = 1;
4
5
struct foo {
6
foo& operator= (const foo&) { status = 0; }
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
}