Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
elision_conv.C
blob: d778a0b8025a07a90fa5b27928de14c3757442e0 [
file
] [
log
] [
blame
]
// Core 1579 return by converting move constructor
// PR c++/58051
// { dg-do compile { target c++11 } }
struct
A
{
A
()
=
default
;
A
(
A
&&)
=
default
;
};
struct
B
{
B
(
A
)
{
}
};
B f
()
{
A a
;
return
a
;
}