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

@@ -13,7 +13,7 @@
#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))
#include <vector>
#include <cassert>
@@ -21,14 +21,8 @@
#include <exception>
#include <cstdlib>
void f1()
{
std::exit(0);
}
int main()
{
std::set_terminate(f1);
typedef int T;
typedef std::vector<T> C;
C c1;