]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/30_threads/shared_lock/locking/4.cc
Update copyright years.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 30_threads / shared_lock / locking / 4.cc
index 2fce9bf8dc2b01f52023e3daf65cb2d06386b55f..8f049c4fc00889b0bf225b47b47d716b2a4715bb 100644 (file)
@@ -1,10 +1,9 @@
 // { dg-do run }
-// { dg-options "-pthread"  }
+// { dg-additional-options "-pthread" { target pthread } }
 // { dg-require-effective-target c++14 }
-// { dg-require-effective-target pthread }
-// { dg-require-cstdint "" }
+// { dg-require-gthreads "" }
 
-// Copyright (C) 2013-2018 Free Software Foundation, Inc.
+// Copyright (C) 2013-2024 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -41,7 +40,7 @@ int main()
 
       try
        {
-         l.try_lock_until(t);
+         (void) l.try_lock_until(t);
        }
       catch(const std::system_error&)
        {