]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/30_threads/lock_guard/cons/1.cc
Update copyright years.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 30_threads / lock_guard / cons / 1.cc
index 590113ccc194a6a14bf18c771eec6df6f26208a3..df265b077d7fa291178dfe3c79f32c0b24f0ec88 100644 (file)
@@ -1,7 +1,6 @@
 // { dg-do run { target c++11 } }
-// { dg-require-cstdint "" }
 
-// Copyright (C) 2010-2016 Free Software Foundation, Inc.
+// Copyright (C) 2010-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
@@ -26,7 +25,7 @@ struct Mutex
 {
   Mutex() : locked(false) { }
 
-  ~Mutex() throw(int)
+  ~Mutex() noexcept(false)
   {
     if (locked)
       throw 0;
@@ -51,8 +50,6 @@ struct Mutex
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   Mutex m;
   m.lock();