mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-21 04:42:53 +08:00
24 lines
236 B
C++
24 lines
236 B
C++
|
#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);
|
||
|
}
|