]> 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 4219782a866ae5746a17f3ae7e47e3c3d5aac540..df265b077d7fa291178dfe3c79f32c0b24f0ec88 100644 (file)
@@ -1,8 +1,6 @@
-// { dg-do run }
-// { dg-options " -std=gnu++11 " }
-// { dg-require-cstdint "" }
+// { dg-do run { target c++11 } }
 
-// Copyright (C) 2010-2015 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
@@ -27,7 +25,7 @@ struct Mutex
 {
   Mutex() : locked(false) { }
 
-  ~Mutex()
+  ~Mutex() noexcept(false)
   {
     if (locked)
       throw 0;
@@ -52,8 +50,6 @@ struct Mutex
 
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-
   Mutex m;
   m.lock();