#include <iostream>
struct A
{
A(int){throw 1;}
};
void f(A)
try
{
}
catch (...)
{
std::cout << "exception caught" << std::endl;
}
int main()
{
try
{
f(1);
}
catch (...)
{
std::cout << "this shouldn't occur" << std::endl;
}
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKc3RydWN0IEEKewogICAgQShpbnQpe3Rocm93IDE7fQp9OwoKdm9pZCBmKEEpCnRyeQp7Cn0KY2F0Y2ggKC4uLikKewogICAgc3RkOjpjb3V0IDw8ICJleGNlcHRpb24gY2F1Z2h0IiA8PCBzdGQ6OmVuZGw7Cn0KCmludCBtYWluKCkKewogICAgdHJ5CiAgICB7ICAKICAgICAgICBmKDEpOwogICAgfQogICAgY2F0Y2ggKC4uLikKICAgIHsgIAogICAgICAgIHN0ZDo6Y291dCA8PCAidGhpcyBzaG91bGRuJ3Qgb2NjdXIiIDw8IHN0ZDo6ZW5kbDsKICAgIH0KfQo=