blob: efd54ec9c5413e147d68d33d32ff2c7bd5fbfdb5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#include <iostream>
class ex {
};
void f(void) {
throw ex();
}
int main() {
try {
f();
}
catch (const ex & myex) {
std::cout << "Catching..." << std::endl;
exit(0);
}
exit(1);
}
|