// { 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-cstdint "" }
// { dg-require-gthreads "" }
-// Copyright (C) 2008-2017 Free Software Foundation, Inc.
+// Copyright (C) 2008-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
// <http://www.gnu.org/licenses/>.
-#include <functional> // std::unary_function, std::ref, std::cref
+#include <functional> // std::ref, std::cref
#include <thread>
#include <system_error>
#include <testsuite_hooks.h>
-struct noncopyable : std::unary_function<std::thread::id&, void>
+struct noncopyable
{
noncopyable() = default;
~noncopyable() = default;