[libc++] Split off debug tests that were missed by ce1365f8f7 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.
This commit is contained in:
Louis Dionne
2020-10-14 10:54:59 -04:00
parent f85bcc21dd
commit 2908eb20ba
114 changed files with 1646 additions and 894 deletions

View File

@@ -11,10 +11,6 @@
// const charT& back() const;
// charT& back();
#ifdef _LIBCPP_DEBUG
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))
#endif
#include <string>
#include <cassert>
@@ -50,13 +46,6 @@ int main(int, char**)
test(S("1234567890123456789012345678901234567890"));
}
#endif
#ifdef _LIBCPP_DEBUG
{
std::string s;
(void) s.back();
assert(false);
}
#endif
return 0;
return 0;
}