Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
copy2.C
blob: c3e96e1030d426aa3727c842ed09d214d248d276 [
file
] [
log
] [
blame
]
// { dg-do run }
// Origin: Mark Mitchell <mark@codesourcery.com>
int
i
;
struct
B
{
B
()
{}
B
(
B
&)
{
i
=
1
;
}
B
(
const
B
&)
{
i
=
2
;
}
};
struct
D
:
public
B
{
D
()
{}
};
int
main
()
{
D d
;
D d2
(
d
);
if
(
i
!=
2
)
return
1
;
}