]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/30_threads/lock/4.cc
Update copyright years.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 30_threads / lock / 4.cc
index 6283af8e4d4afce4c2683db0d1c27422b6e08216..7ba15cba84b49e7d3c04be99eb94cd35d7582d07 100644 (file)
@@ -1,11 +1,9 @@
-// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* powerpc-ibm-aix* } }
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
-// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
-// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
-// { dg-require-cstdint "" }
+// { dg-do run }
+// { dg-additional-options "-pthread" { target pthread } }
+// { dg-require-effective-target c++11 }
 // { dg-require-gthreads "" }
 
-// Copyright (C) 2010-2013 Free Software Foundation, Inc.
+// Copyright (C) 2010-2021 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
@@ -39,7 +37,6 @@ struct unreliable_lock
 
   ~unreliable_lock()
   {
-    bool test __attribute__((unused)) = true;
     VERIFY( !l.owns_lock() );
   }
 
@@ -63,7 +60,6 @@ struct unreliable_lock
 
   void unlock()
   {
-    bool test __attribute__((unused)) = true;
     VERIFY( l.owns_lock() );
     l.unlock();
   }
@@ -76,8 +72,6 @@ int unreliable_lock::lock_on = -1;
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   unreliable_lock l1, l2, l3;
 
   try
@@ -97,8 +91,6 @@ void test01()
 
 void test02()
 {
-  bool test __attribute__((unused)) = true;
-
   // test behaviour when a lock is already held
   try
     {