]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/tr1/6_containers/unordered_multimap/erase/1.cc
Update copyright years.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / tr1 / 6_containers / unordered_multimap / erase / 1.cc
index ee7235b66a3cdfb8423d948cab252d2723b0a560..584c76d71ed8260d73479b5cbb3223e949c1ee89 100644 (file)
@@ -1,6 +1,6 @@
-// 2007-02-22  Paolo Carlini  <pcarlini@suse.de> 
+// 2007-02-22  Paolo Carlini  <pcarlini@suse.de>
 //
-// Copyright (C) 2007-2016 Free Software Foundation, Inc.
+// Copyright (C) 2007-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,8 +26,6 @@
 // In the occasion of libstdc++/25896
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-  
   typedef std::tr1::unordered_multimap<std::string, int> Mmap;
   typedef Mmap::iterator       iterator;
   typedef Mmap::const_iterator const_iterator;
@@ -114,11 +112,11 @@ void test01()
   VERIFY( mm1.size() == 2 );
   VERIFY( ++it10 == mm1.end() );
 
-  VERIFY( mm1.erase(mm1.begin()) != mm1.end() );  
+  VERIFY( mm1.erase(mm1.begin()) != mm1.end() );
   VERIFY( mm1.size() == 1 );
   VERIFY( mm1.begin() == it11 );
 
-  VERIFY( mm1.erase(mm1.begin()->first) == 1 );  
+  VERIFY( mm1.erase(mm1.begin()->first) == 1 );
   VERIFY( mm1.size() == 0 );
   VERIFY( mm1.begin() == mm1.end() );
 }