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