Change (void) casts to TEST_IGNORE_NODISCARD, as requested by Eric. Reviewed as https://reviews.llvm.org/D40065
llvm-svn: 318804
This commit is contained in:
@@ -45,7 +45,7 @@ test(const S& s, typename S::size_type pos1, typename S::size_type n1,
|
||||
{
|
||||
try
|
||||
{
|
||||
(void)s.compare(pos1, n1, sv, pos2, n2);
|
||||
TEST_IGNORE_NODISCARD s.compare(pos1, n1, sv, pos2, n2);
|
||||
assert(false);
|
||||
}
|
||||
catch (const std::out_of_range&)
|
||||
@@ -69,7 +69,7 @@ test_npos(const S& s, typename S::size_type pos1, typename S::size_type n1,
|
||||
{
|
||||
try
|
||||
{
|
||||
(void)s.compare(pos1, n1, sv, pos2);
|
||||
TEST_IGNORE_NODISCARD s.compare(pos1, n1, sv, pos2);
|
||||
assert(false);
|
||||
}
|
||||
catch (const std::out_of_range&)
|
||||
|
||||
@@ -40,7 +40,7 @@ test(const S& s, typename S::size_type pos1, typename S::size_type n1,
|
||||
{
|
||||
try
|
||||
{
|
||||
(void)s.compare(pos1, n1, str);
|
||||
TEST_IGNORE_NODISCARD s.compare(pos1, n1, str);
|
||||
assert(false);
|
||||
}
|
||||
catch (std::out_of_range&)
|
||||
|
||||
@@ -40,7 +40,7 @@ test(const S& s, typename S::size_type pos, typename S::size_type n1,
|
||||
{
|
||||
try
|
||||
{
|
||||
(void)s.compare(pos, n1, str, n2);
|
||||
TEST_IGNORE_NODISCARD s.compare(pos, n1, str, n2);
|
||||
assert(false);
|
||||
}
|
||||
catch (std::out_of_range&)
|
||||
|
||||
@@ -40,7 +40,7 @@ test(const S& s, typename S::size_type pos1, typename S::size_type n1,
|
||||
{
|
||||
try
|
||||
{
|
||||
(void)s.compare(pos1, n1, str);
|
||||
TEST_IGNORE_NODISCARD s.compare(pos1, n1, str);
|
||||
assert(false);
|
||||
}
|
||||
catch (std::out_of_range&)
|
||||
|
||||
@@ -42,7 +42,7 @@ test(const S& s, typename S::size_type pos1, typename S::size_type n1,
|
||||
{
|
||||
try
|
||||
{
|
||||
(void)s.compare(pos1, n1, str, pos2, n2);
|
||||
TEST_IGNORE_NODISCARD s.compare(pos1, n1, str, pos2, n2);
|
||||
assert(false);
|
||||
}
|
||||
catch (const std::out_of_range&)
|
||||
@@ -65,7 +65,7 @@ test_npos(const S& s, typename S::size_type pos1, typename S::size_type n1,
|
||||
{
|
||||
try
|
||||
{
|
||||
(void)s.compare(pos1, n1, str, pos2);
|
||||
TEST_IGNORE_NODISCARD s.compare(pos1, n1, str, pos2);
|
||||
assert(false);
|
||||
}
|
||||
catch (const std::out_of_range&)
|
||||
|
||||
@@ -40,7 +40,7 @@ test(const S& s, typename S::size_type pos1, typename S::size_type n1,
|
||||
{
|
||||
try
|
||||
{
|
||||
(void)s.compare(pos1, n1, sv);
|
||||
TEST_IGNORE_NODISCARD s.compare(pos1, n1, sv);
|
||||
assert(false);
|
||||
}
|
||||
catch (std::out_of_range&)
|
||||
|
||||
Reference in New Issue
Block a user