[libcxx-commits] [PATCH] D97540: [libcxx] [test] Fix a test error with condvars with trivial destruction

Martin Storsjö via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Tue Mar 2 10:37:43 PST 2021


This revision was automatically updated to reflect the committed changes.
Closed by commit rG4adb4bca0575: [libcxx] [test] Fix a test error with condvars with trivial destruction (authored by mstorsjo).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D97540/new/

https://reviews.llvm.org/D97540

Files:
  libcxx/test/std/thread/thread.condition/thread.condition.condvar/default.pass.cpp


Index: libcxx/test/std/thread/thread.condition/thread.condition.condvar/default.pass.cpp
===================================================================
--- libcxx/test/std/thread/thread.condition/thread.condition.condvar/default.pass.cpp
+++ libcxx/test/std/thread/thread.condition/thread.condition.condvar/default.pass.cpp
@@ -22,6 +22,7 @@
 int main(int, char**)
 {
     std::condition_variable cv;
+    static_cast<void>(cv);
 
   return 0;
 }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D97540.327513.patch
Type: text/x-patch
Size: 452 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20210302/eca3c29c/attachment.bin>


More information about the libcxx-commits mailing list