Logo Search packages:      
Sourcecode: mingw-w64 version File versions  Download package

t_trycatch.cpp

#include <stdio.h>

void foo (int d) throw (int)
{
  throw (d);
}

int main()
{
  try {
   foo (10);
   printf ("Hmm...\n");
  } catch (int ex)
  {
    printf ("catch %d==10\n", ex);
  }
  printf ("Done.\n");
  return 0;
}


Generated by  Doxygen 1.6.0   Back to index