• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //  (C) Copyright Gennadiy Rozental 2002-2015.
2 //  Distributed under the Boost Software License, Version 1.0.
3 //  (See accompanying file LICENSE_1_0.txt or copy at
4 //  http://www.boost.org/LICENSE_1_0.txt)
5 
6 //  See http://www.boost.org/libs/test for the library home page.
7 //
8 //  File        : $RCSfile$
9 //
10 //  Version     : $Revision$
11 //
12 //  Description : tests an ability of the Program Execution Monitor to catch
13 //  user fatal exceptions. Should fail during run. But not crash.
14 // ***************************************************************************
15 
16 #include <cassert>
17 
cpp_main(int,char * [])18 int cpp_main( int, char *[] )  // note the name
19 {
20 #if NDEBUG
21 #pragma message("assert check turned off under NDEBUG")
22 
23     return 1;
24 #else
25     int div = 0;
26 
27     assert( div != 0 );
28 
29     return 0;
30 #endif
31 }
32 
33 //____________________________________________________________________________//
34 
35 // EOF
36