diff options
-rw-r--r-- | libcxx/test/std/localization/locales/locale.convenience/conversions/conversions.string/ctor_err_string.pass.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libcxx/test/std/localization/locales/locale.convenience/conversions/conversions.string/ctor_err_string.pass.cpp b/libcxx/test/std/localization/locales/locale.convenience/conversions/conversions.string/ctor_err_string.pass.cpp index 8126531872a..6d3947fed7f 100644 --- a/libcxx/test/std/localization/locales/locale.convenience/conversions/conversions.string/ctor_err_string.pass.cpp +++ b/libcxx/test/std/localization/locales/locale.convenience/conversions/conversions.string/ctor_err_string.pass.cpp @@ -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&) |