#include <iostream>
class Foo {
public:
Foo() {
std::cout << "ctor" << std::endl;
}
Foo(Foo& f) {
std::cout << "copy ctor" << std::endl;
}
Foo& operator=(Foo& f) {
std::cout << '=' << std::endl;
}
};
int main() {
Foo a;
Foo b = a;
Foo c;
Foo d;
c = d;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKY2xhc3MgRm9vIHsKcHVibGljOgoJRm9vKCkgewoJCXN0ZDo6Y291dCA8PCAiY3RvciIgPDwgc3RkOjplbmRsOwoJfQoJCglGb28oRm9vJiBmKSB7CgkJc3RkOjpjb3V0IDw8ICJjb3B5IGN0b3IiIDw8IHN0ZDo6ZW5kbDsKCX0KCQoJRm9vJiBvcGVyYXRvcj0oRm9vJiBmKSB7CgkJc3RkOjpjb3V0IDw8ICc9JyA8PCBzdGQ6OmVuZGw7Cgl9Cn07CgppbnQgbWFpbigpIHsKCUZvbyBhOwoJRm9vIGIgPSBhOwoJCglGb28gYzsKCUZvbyBkOwoJYyA9IGQ7CglyZXR1cm4gMDsKfQ==