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
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
copy2.C
1
// Origin: Mark Mitchell <mark@codesourcery.com>
2
3
int i;
4
5
struct B {
6
B () {}
7
B (B&) { i = 1; }
8
B (const B&) { i = 2; }
9
};
10
11
struct D : public B {
12
D () {}
13
};
14
15
int main ()
16
{
17
D d;
18
D d2 (d);
19
if (i != 2)
20
return 1;
21
}