[libcxx] [test] Add another (void) cast for a function marked nodiscard in MS STL

Differential Revision: https://reviews.llvm.org/D89867
This commit is contained in:
Martin Storsjö 2020-10-21 11:44:51 +03:00
parent 5449ea9f90
commit 586892d583
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ TEST_CASE(test_symlink_status_cannot_resolve)
#ifndef TEST_HAS_NO_EXCEPTIONS
{ // test throwing case
try {
symlink_status(p);
(void)symlink_status(p);
} catch (filesystem_error const& err) {
TEST_CHECK(err.path1() == p);
TEST_CHECK(err.path2() == "");