#include <iostream>
class X {
public:
X() {
std::cout << "X constructor called\n";
}
X(const X &other) {
std::cout << "X copy constructor called\n";
}
~X() {
std::cout << "X destructor called\n";
}
};
X create_x() {
X x;
return x;
}
int main() {
auto x = create_x();
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKY2xhc3MgWCB7CnB1YmxpYzoKICAgIFgoKSB7CiAgICAgICAgc3RkOjpjb3V0IDw8ICJYIGNvbnN0cnVjdG9yIGNhbGxlZFxuIjsKICAgIH0KCiAgICBYKGNvbnN0IFggJm90aGVyKSB7CiAgICAgICAgc3RkOjpjb3V0IDw8ICJYIGNvcHkgY29uc3RydWN0b3IgY2FsbGVkXG4iOwogICAgfQoKICAgIH5YKCkgewogICAgICAgIHN0ZDo6Y291dCA8PCAiWCBkZXN0cnVjdG9yIGNhbGxlZFxuIjsKICAgIH0KfTsKClggY3JlYXRlX3goKSB7CiAgICBYIHg7CiAgICByZXR1cm4geDsKfQoKaW50IG1haW4oKSB7CiAgICBhdXRvIHggPSBjcmVhdGVfeCgpOwogICAgcmV0dXJuIDA7Cn0=