#include <iostream>
using namespace std;
struct test_t
{
int a;
~test_t()
{
cout << "bye bye" << endl;
}
};
test_t* get()
{
test_t t;
return &t;
}
int main()
{
cout << "call get()" << endl;
test_t *t = get();
cout << "comeback to main" << endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKc3RydWN0IHRlc3RfdAp7CglpbnQgYTsKCX50ZXN0X3QoKSAKCXsgCgkJY291dCA8PCAiYnllIGJ5ZSIgPDwgZW5kbDsKCX0KfTsKdGVzdF90KiBnZXQoKQp7Cgl0ZXN0X3QgdDsKCXJldHVybiAmdDsKfQoKaW50IG1haW4oKQp7Cgljb3V0IDw8ICJjYWxsIGdldCgpIiA8PCBlbmRsOwoJdGVzdF90ICp0ID0gZ2V0KCk7Cgljb3V0IDw8ICJjb21lYmFjayB0byBtYWluIiA8PCBlbmRsOwoJcmV0dXJuIDA7Cn0=