]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/27_io/basic_istream/extractors_character/wchar_t/3.cc
Update copyright years.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 27_io / basic_istream / extractors_character / wchar_t / 3.cc
index aabfe79df932ef2fd04bbc6b8b1e2c1998fe1130..d2f5a5259f1803c9b592896e36b2784ba40e155d 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2004-2015 Free Software Foundation, Inc.
+// Copyright (C) 2004-2023 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
@@ -23,7 +23,6 @@
 
 void test01() 
 {
-  bool test __attribute__((unused)) = true;
   std::wstring str_01;
   const std::wstring str_02(L"coltrane playing 'softly as a morning sunrise'");
   const std::wstring str_03(L"coltrane");
@@ -38,7 +37,7 @@ void test01()
 
   // template<_CharT, _Traits>
   //  basic_istream& operator>>(istream&, _CharT*)
-  int n = 20;
+  const int n = 20;
   wchar_t array1[n];
   typedef std::wios::traits_type ctraits_type;