Initial import of the CDE 2.1.30 sources from the Open Group.
This commit is contained in:
19
cde/programs/dtinfo/mmdb/dti_excs/test0.C
Normal file
19
cde/programs/dtinfo/mmdb/dti_excs/test0.C
Normal file
@@ -0,0 +1,19 @@
|
||||
// $XConsortium: test0.cc /main/3 1996/06/11 16:52:21 cde-hal $
|
||||
#include <stdio.h>
|
||||
#include "Exceptions.hh"
|
||||
|
||||
int
|
||||
main()
|
||||
{
|
||||
INIT_EXCEPTIONS();
|
||||
|
||||
try
|
||||
{
|
||||
puts ("Trying something");
|
||||
}
|
||||
catch (Exception &,e)
|
||||
{
|
||||
puts ("Caught an exception");
|
||||
}
|
||||
end_try;
|
||||
}
|
||||
Reference in New Issue
Block a user