#include <iostream>
#include <exception>
void myterminate () {
std::cerr << "termninate called\n";
throw 0;
}
int main (void) {
std::set_terminate(myterminate);
try
{
throw 'x';
}
catch (char) { std::cerr << "caught char\n"; }
}
I2luY2x1ZGUgPGlvc3RyZWFtPiAgICAgICAKI2luY2x1ZGUgPGV4Y2VwdGlvbj4gICAgICAKCnZvaWQgbXl0ZXJtaW5hdGUgKCkgewogIHN0ZDo6Y2VyciA8PCAidGVybW5pbmF0ZSBjYWxsZWRcbiI7CiAgdGhyb3cgMDsgICAgIAp9CgppbnQgbWFpbiAodm9pZCkgewogIHN0ZDo6c2V0X3Rlcm1pbmF0ZShteXRlcm1pbmF0ZSk7CiAgdHJ5IAogIHsKICAgIHRocm93ICd4JzsKICB9CiAgY2F0Y2ggKGNoYXIpIHsgc3RkOjpjZXJyIDw8ICJjYXVnaHQgY2hhclxuIjsgfQp9