Simply debug mode tests per Dmitri Gribenko's suggestion.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@178026 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Howard Hinnant
2013-03-26 14:28:25 +00:00
parent d9cdb2dcfd
commit 3fbd1dfb24
21 changed files with 21 additions and 148 deletions

View File

@@ -12,7 +12,7 @@
// void pop_back();
#if _LIBCPP_DEBUG2 >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::terminate())
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))
#endif
#include <vector>
@@ -23,17 +23,10 @@
#include <cstdlib>
#include <exception>
void f1()
{
std::exit(0);
}
#endif
int main()
{
#if _LIBCPP_DEBUG2 >= 1
std::set_terminate(f1);
#endif
{
std::vector<int> c;
c.push_back(1);