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
Fix typo in test case
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
copy2.C
blob
2fb52a1ece2b4d86e570d78d5a8c40d4f48d9282
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
}