forked from boostorg/config
Added support for BOOST_NO_EXCEPTIONS
[SVN r12756]
This commit is contained in:
36
test/no_exceptions_fail.cpp
Normal file
36
test/no_exceptions_fail.cpp
Normal file
@@ -0,0 +1,36 @@
|
||||
|
||||
// (C) Copyright Boost.org 1999. Permission to copy, use, modify, sell and
|
||||
// distribute this software is granted provided this copyright notice appears
|
||||
// in all copies. This software is provided "as is" without express or implied
|
||||
// warranty, and with no claim as to its suitability for any purpose.
|
||||
|
||||
// Test file for macro BOOST_NO_EXCEPTIONS
|
||||
// This file should not compile, if it does then
|
||||
// BOOST_NO_EXCEPTIONS need not be defined.
|
||||
// see boost_no_exceptions.cxx for more details
|
||||
|
||||
// Do not edit this file, it was generated automatically by
|
||||
// ../tools/generate from boost_no_exceptions.cxx on
|
||||
// Fri Feb 8 11:29:25 2002
|
||||
|
||||
// Must not have BOOST_ASSERT_CONFIG set; it defeats
|
||||
// the objective of this file:
|
||||
#ifdef BOOST_ASSERT_CONFIG
|
||||
# undef BOOST_ASSERT_CONFIG
|
||||
#endif
|
||||
|
||||
#include <boost/config.hpp>
|
||||
#include <boost/test/cpp_main.cpp>
|
||||
#include "test.hpp"
|
||||
|
||||
#ifdef BOOST_NO_EXCEPTIONS
|
||||
#include "boost_no_exceptions.cxx"
|
||||
#else
|
||||
#error "this file should not compile"
|
||||
#endif
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return boost_no_exceptions::test();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user