]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/30_threads/unique_lock/locking/2.cc
Update copyright years.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 30_threads / unique_lock / locking / 2.cc
index 354e6126e91882922014a1e0f4a59ec43ecd7f45..c24cfa01197e0bd5e250f417686e8414b9e8878f 100644 (file)
@@ -1,10 +1,9 @@
-// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } }
-// { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } }
+// { dg-do run }
+// { dg-additional-options "-pthread" { target pthread } }
 // { dg-require-effective-target c++11 }
-// { dg-require-cstdint "" }
 // { dg-require-gthreads "" }
 
-// Copyright (C) 2008-2016 Free Software Foundation, Inc.
+// Copyright (C) 2008-2022 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
@@ -28,7 +27,6 @@
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
   typedef std::mutex mutex_type;
   typedef std::unique_lock<mutex_type> lock_type;
 
@@ -64,7 +62,6 @@ void test01()
 
 void test02()
 {
-  bool test __attribute__((unused)) = true;
   typedef std::mutex mutex_type;
   typedef std::unique_lock<mutex_type> lock_type;