Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/move-return4.C

raw
1 // PR c++/87530
2 // { dg-do compile { target c++11 } }
3
4 struct Base { };
5
6 template<typename T>
7 struct A : Base
8 {
9 A();
10 A(Base&&);
11 };
12
13 A<int> foo()
14 {
15 A<double> v;
16 return v;
17 }