#include <iostream>
struct Foo
{
Foo() { std::cout << "Foo()" << std::endl; }
};
void foo()
{
static Foo f;
}
int main()
{
std::cout << "start" << std::endl;
foo();
std::cout << "stop" << std::endl;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKc3RydWN0IEZvbwp7CiAgRm9vKCkgeyBzdGQ6OmNvdXQgPDwgIkZvbygpIiA8PCBzdGQ6OmVuZGw7IH0KfTsKCnZvaWQgZm9vKCkKewogIHN0YXRpYyBGb28gZjsKfQoKaW50IG1haW4oKQp7CiAgc3RkOjpjb3V0IDw8ICJzdGFydCIgPDwgc3RkOjplbmRsOwogIGZvbygpOyAKICBzdGQ6OmNvdXQgPDwgInN0b3AiIDw8IHN0ZDo6ZW5kbDsKfQo=