xref: /openbsd/regress/misc/exceptions/foo/foo.cc (revision 799f675f)
1 #include <iostream>
2 
3 using namespace std;
4 
5 int
main()6 main ()
7 {
8 	cout << "Throwing up" << endl;
9 	try {
10 		throw false;
11 	}
12 	catch (...) {
13 		cout << "Wew, that was close!" << endl;
14 		return 0;
15 	}
16 	cout << "Done" << endl;
17 	return 1;
18 }
19