]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/22_locale/global_templates/1.cc
Update copyright years.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 22_locale / global_templates / 1.cc
index a3aa40fb5fcd89790b0f20aaba22ed91039fdd1c..39b9cd193031fd13101c084b0363ce82401977eb 100644 (file)
@@ -1,11 +1,11 @@
 // 2000-09-11 Benjamin Kosnik <bkoz@redhat.com>
 
-// Copyright (C) 2000 Free Software Foundation
+// Copyright (C) 2000-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
 // terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 2, or (at your option)
+// Free Software Foundation; either version 3, or (at your option)
 // any later version.
 
 // This library is distributed in the hope that it will be useful,
 // GNU General Public License for more details.
 
 // You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING.  If not, write to the Free
-// Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
-// USA.
+// with this library; see the file COPYING3.  If not see
+// <http://www.gnu.org/licenses/>.
 
 // 22.1.2 locale globals [lib.locale.global.templates]
 
 #include <cwchar> // for mbstate_t
 #include <locale>
+#include <typeinfo>
 #include <testsuite_hooks.h>
 
 typedef std::codecvt<char, char, std::mbstate_t> ccodecvt;
@@ -32,8 +32,6 @@ void test01()
 {
   using namespace std;
 
-  bool test __attribute__((unused)) = true;
-
   // construct a locale object with the C facet
   const locale&        cloc = locale::classic();
   // sanity check the constructed locale has the normal facet