Back to index

cell-binutils  2.17cvs20070401
dl3main.cc
Go to the documentation of this file.
00001 #include <stdio.h>
00002 #include "dl3header.h"
00003 
00004 extern void f (void);
00005 
00006 int
00007 main (void)
00008 {
00009   try
00010     {
00011       f();
00012     }
00013   catch (A a)
00014     {
00015       if (a.i == 42)
00016        printf ("OK\n");
00017       else
00018        printf ("BAD1\n");
00019     }
00020   catch (...)
00021     {
00022       printf ("BAD2\n");
00023     }
00024   return 0;
00025 }