#include <iostream>
#include <memory>
using namespace std;
class test {
public:
test() : n(0) {}
test(test& t) : n(t.n) { cout << "test(test& t)" << endl ; }
test(test&& t) : n(t.n) { cout << "test(test&& t)" << endl; }
int n;
private:
};
test func(test t)
{
return t;
}
int main() {
test tt;
cout << func(tt).n << endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8bWVtb3J5Pgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKY2xhc3MgdGVzdCB7CnB1YmxpYzoKCXRlc3QoKSA6IG4oMCkge30KCgl0ZXN0KHRlc3QmIHQpIDogbih0Lm4pIHsgY291dCA8PCAidGVzdCh0ZXN0JiB0KSIgPDwgZW5kbCA7IH0KCXRlc3QodGVzdCYmIHQpIDogbih0Lm4pIHsgY291dCA8PCAidGVzdCh0ZXN0JiYgdCkiIDw8IGVuZGw7IH0KCglpbnQgbjsKcHJpdmF0ZToKCQoKfTsKCnRlc3QgZnVuYyh0ZXN0IHQpCnsKCXJldHVybiB0Owp9CgppbnQgbWFpbigpIHsKCgl0ZXN0IHR0OwoJY291dCA8PCBmdW5jKHR0KS5uIDw8IGVuZGw7CgoKCXJldHVybiAwOwp9