Don't #error when doing a release build. Just put out an informative message, and pass the test.

[SVN r24328]
This commit is contained in:
Rene Rivera
2004-08-07 06:25:20 +00:00
parent bfc384a435
commit 0c31aa03f0

View File

@ -18,8 +18,12 @@
#include <boost/cstdint.hpp> #include <boost/cstdint.hpp>
#ifdef NDEBUG #ifdef NDEBUG
#error This test makes no sense with NDEBUG defined int main()
#endif {
std::cout << "This test makes no sense with NDEBUG defined.\n";
return 0;
}
#else
#ifndef BOOST_NO_INCLASS_MEMBER_INITIALIZATION #ifndef BOOST_NO_INCLASS_MEMBER_INITIALIZATION
// //
@ -212,5 +216,4 @@ int main()
std::cout << "OK\n"; std::cout << "OK\n";
return 0; return 0;
} }
#endif