1 // Core 1579 return by converting move constructor
2 // PR c++/58051
3 // { dg-do compile { target c++11 } }
4 
5 struct A {
6   A() = default;
7   A(A&&) = default;
8 };
9 
10 struct B {
BB11   B(A) { }
12 };
13 
f()14 B f()
15 {
16   A a;
17   return a;
18 }
19