binutils-gdb/gold/testsuite/eh_test_b.cc

24 lines
236 B
C++
Raw Normal View History

#include <iostream>
#include <cstdlib>
void
foo()
{
}
int
main()
{
try
{
throw(1);
}
catch(int)
{
std::cout << "caught" << std::endl;
exit(0);
}
std::cout << "failed" << std::endl;
exit(1);
}