// ---------------------------------------------------------------------- // // fctntry.cc - Are function try blocks supported? // // History: // 20-Feb-2000 WEB Initial draft, based on Matthew D. Langston's // DL_CXX_FUNCTION_TRY_BLOCKS autoconf macro // 25-Apr-2001 WEB s//"ISOcxx\/ISOcxxSyntax.hh"/ // // ---------------------------------------------------------------------- #include "ISOcxx/ISOcxxSyntax.hh" int f() #ifndef DEFECT_NO_FUNCTION_TRY_BLOCKS TRY #endif { return 0; } #ifndef DEFECT_NO_FUNCTION_TRY_BLOCKS CATCH(...) { return 1; } #endif int main() { return f(); } // main()