1#include <stdlib.h>
2
3/* This is the most basic use of EH you can imagine.  It just throws and
4   catches an exception.  It tests a significant fraction of
5   keymgr.  */
6
7void throw_an_exception ()
8{
9  throw 1;
10}
11
12int main()
13{
14  try {
15    throw_an_exception();
16  } catch (int x) {
17    return 0;
18  }
19  abort ();
20}
21