// { dg-do run }
-// { dg-options "-pthread" }
+// { dg-additional-options "-pthread" { target pthread } }
// { dg-require-effective-target c++11 }
-// { dg-require-effective-target pthread }
// { dg-require-gthreads "" }
-// Copyright (C) 2009-2019 Free Software Foundation, Inc.
+// Copyright (C) 2009-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