]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/tr1/6_containers/unordered_multiset/erase/1.cc
Update copyright years.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / tr1 / 6_containers / unordered_multiset / erase / 1.cc
index 5683ba121b65b755679db6457acc189af51ed195..808850f0bc80de1ac93d587be722a92c288843f7 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-2013 Free Software Foundation, Inc.
+// Copyright (C) 2007-2020 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
 // In the occasion of libstdc++/25896
 void test01()
 {
-  bool test __attribute__((unused)) = true;
-  
   typedef std::tr1::unordered_multiset<std::string> Mset;
   typedef Mset::iterator       iterator;
   typedef Mset::const_iterator const_iterator;
 
   Mset ms1;
-  
+
   ms1.insert("because to why");
   ms1.insert("the stockholm syndrome");
   ms1.insert("a cereous night");
@@ -113,11 +111,11 @@ void test01()
   VERIFY( ms1.size() == 2 );
   VERIFY( ++it10 == ms1.end() );
 
-  VERIFY( ms1.erase(ms1.begin()) != ms1.end() );  
+  VERIFY( ms1.erase(ms1.begin()) != ms1.end() );
   VERIFY( ms1.size() == 1 );
   VERIFY( ms1.begin() == it11 );
 
-  VERIFY( ms1.erase(*ms1.begin()) == 1 );  
+  VERIFY( ms1.erase(*ms1.begin()) == 1 );
   VERIFY( ms1.size() == 0 );
   VERIFY( ms1.begin() == ms1.end() );
 }