[libcxx] r329979 - [libcxx] [test] Use TEST_IGNORE_NODISCARD.

Stephan T. Lavavej via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 12 17:07:48 PDT 2018


Author: stl_msft
Date: Thu Apr 12 17:07:48 2018
New Revision: 329979

URL: http://llvm.org/viewvc/llvm-project?rev=329979&view=rev
Log:
[libcxx] [test] Use TEST_IGNORE_NODISCARD.

Fixes D45595.

Modified:
    libcxx/trunk/test/std/localization/locales/locale.convenience/conversions/conversions.string/ctor_err_string.pass.cpp

Modified: libcxx/trunk/test/std/localization/locales/locale.convenience/conversions/conversions.string/ctor_err_string.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/localization/locales/locale.convenience/conversions/conversions.string/ctor_err_string.pass.cpp?rev=329979&r1=329978&r2=329979&view=diff
==============================================================================
--- libcxx/trunk/test/std/localization/locales/locale.convenience/conversions/conversions.string/ctor_err_string.pass.cpp (original)
+++ libcxx/trunk/test/std/localization/locales/locale.convenience/conversions/conversions.string/ctor_err_string.pass.cpp Thu Apr 12 17:07:48 2018
@@ -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&)




More information about the cfe-commits mailing list