Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
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
;
}