Fix up the tests I added for string exceptions to be skipped when exceptions are disabled

llvm-svn: 258279
This commit is contained in:
Marshall Clow
2016-01-20 03:19:15 +00:00
parent efa5f6c170
commit 9d10d27c67
5 changed files with 29 additions and 0 deletions

View File

@@ -142,6 +142,7 @@ int main()
S("12345678901234567890ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"));
}
#endif
#ifndef TEST_HAS_NO_EXCEPTIONS
{ // test iterator operations that throw
typedef std::string S;
typedef ThrowingIterator<char> TIter;
@@ -155,6 +156,7 @@ int main()
test_exceptions(S(), 0, TIter(s, s+10, 5, TIter::TADereference), TIter());
test_exceptions(S(), 0, TIter(s, s+10, 6, TIter::TAComparison), TIter());
}
#endif
#if _LIBCPP_DEBUG >= 1
{
std::string v;