]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/27_io/basic_filebuf/underflow/wchar_t/11544-2.cc
Update copyright years.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 27_io / basic_filebuf / underflow / wchar_t / 11544-2.cc
index ff1cc405bd31d515c4ac8ae0fd72b5c120a1b684..3bbb8084ba9539b578a7e218da3bbf00c49e4227 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2003, 2009 Free Software Foundation, Inc.
+// Copyright (C) 2003-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
@@ -154,14 +154,13 @@ protected:
 void test02()
 {
   using namespace std;
-  bool test __attribute__((unused)) = true;
 
   locale loc(locale::classic(), new checksumcvt<wchar_t>);
   
   const char* name = "tmp_11544-2";
   
   FILE* f = fopen(name, "w");
-  fwrite("aaaab", 1, 5, f);
+  VERIFY( fwrite("aaaab", 1, 5, f) == 5 );
   fclose(f);
   
   wifstream in;