]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/20_util/scoped_allocator/2.cc
Update copyright years.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 20_util / scoped_allocator / 2.cc
index 384361d255c722b9872aaf9977fa6dae1d8163cc..bbeb5285979a8954f17ba19db0309d4cb251c999 100644 (file)
@@ -1,6 +1,6 @@
-// { dg-options "-std=gnu++11" }
+// { dg-do run { target c++11 } }
 
-// Copyright (C) 2012-2015 Free Software Foundation, Inc.
+// Copyright (C) 2012-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
@@ -120,8 +120,6 @@ template<typename A, typename B>
   void
   test_def()
   {
-    bool test __attribute((unused)) = false;
-
     typedef std::pair<A, B> test_type;
     typedef uneq_allocator<test_type> alloc_type;
     typedef scoped_allocator_adaptor<alloc_type, alloc_type> alloc_adaptor;
@@ -167,8 +165,6 @@ template<typename A, typename B>
   void
   test_copying()
   {
-    bool test __attribute((unused)) = false;
-
     typedef std::pair<A, B> test_type;
     typedef uneq_allocator<test_type> alloc_type;
     typedef scoped_allocator_adaptor<alloc_type, alloc_type> alloc_adaptor;
@@ -218,8 +214,6 @@ template<typename A, typename B>
   void
   test_moving()
   {
-    bool test __attribute((unused)) = false;
-
     typedef std::pair<A, B> test_type;
     typedef uneq_allocator<test_type> alloc_type;
     typedef scoped_allocator_adaptor<alloc_type, alloc_type> alloc_adaptor;