forked from OSchip/llvm-project
[libcxx] [test] Use TEST_IGNORE_NODISCARD.
Fixes D45595. llvm-svn: 329979
This commit is contained in:
parent
ad9545eb30
commit
8fc5b84349
|
@ -33,7 +33,7 @@ int main()
|
|||
Myconv myconv;
|
||||
try
|
||||
{
|
||||
(void)myconv.to_bytes(L"\xDA83");
|
||||
TEST_IGNORE_NODISCARD myconv.to_bytes(L"\xDA83");
|
||||
assert(false);
|
||||
}
|
||||
catch (const std::range_error&)
|
||||
|
@ -41,7 +41,7 @@ int main()
|
|||
}
|
||||
try
|
||||
{
|
||||
(void)myconv.from_bytes('\xA5');
|
||||
TEST_IGNORE_NODISCARD myconv.from_bytes('\xA5');
|
||||
assert(false);
|
||||
}
|
||||
catch (const std::range_error&)
|
||||
|
@ -56,7 +56,7 @@ int main()
|
|||
#ifndef TEST_HAS_NO_EXCEPTIONS
|
||||
try
|
||||
{
|
||||
(void)myconv.from_bytes('\xA5');
|
||||
TEST_IGNORE_NODISCARD myconv.from_bytes('\xA5');
|
||||
assert(false);
|
||||
}
|
||||
catch (const std::range_error&)
|
||||
|
|
Loading…
Reference in New Issue