[libc++] Split off debug tests that were missed by ce1365f8f7e into test/libcxx
Also, some tests had multiple death tests in them, so split them into
separate tests instead. The second death test would obviously never
get run, because the first one would kill the program before.
diff --git a/libcxx/test/std/strings/basic.string/string.access/front.pass.cpp b/libcxx/test/std/strings/basic.string/string.access/front.pass.cpp
index eaaa678..4cc9f31 100644
--- a/libcxx/test/std/strings/basic.string/string.access/front.pass.cpp
+++ b/libcxx/test/std/strings/basic.string/string.access/front.pass.cpp
@@ -11,10 +11,6 @@
// const charT& front() const;
// charT& front();
-#ifdef _LIBCPP_DEBUG
-#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))
-#endif
-
#include <string>
#include <cassert>
@@ -50,13 +46,6 @@
test(S("1234567890123456789012345678901234567890"));
}
#endif
-#ifdef _LIBCPP_DEBUG
- {
- std::string s;
- (void) s.front();
- assert(false);
- }
-#endif
- return 0;
+ return 0;
}