#include <iostream>
#include <memory>

using namespace std;

weak_ptr<int> test() {
	shared_ptr<int> foo{new int};
	
	return foo;
}

int main() {
	auto foo = test();
	
	cout << foo.expired() << endl;
	return 0;
}