Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
overload
/
copy1.C
blob: 5c7922f8330058aba7b90e0c362524b0b70b178c [
file
] [
log
] [
blame
]
// PR c++/34824
struct
A
;
struct
B
{
B
(
A
const
&);
B
(
B
&);
// { dg-message "note" }
};
struct
A
{
A
(
B
);
// { dg-message "initializing" }
};
B
f
(
B
const
&
b
)
{
return
b
;
// { dg-error "" }
}