]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/27_io/manipulators/standard/char/2.cc
Update copyright years.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 27_io / manipulators / standard / char / 2.cc
index 00924deb685c39715fee0015929f311f45d57bd4..d57c46eaead2ef8420adc27098573f684203d192 100644 (file)
@@ -1,6 +1,6 @@
 // { dg-options "-fno-implicit-templates" }
 
-// Copyright (C) 2001-2015 Free Software Foundation, Inc.
+// Copyright (C) 2001-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
@@ -32,7 +32,6 @@ void
 test01()
 {
   using namespace std;
-  bool test __attribute__((unused)) = true;
   string x ("   this is text");
   istringstream  sin(x);
   ostringstream  sout;
@@ -41,7 +40,7 @@ test01()
   sin >> resetiosflags(ios_base::dec)
       >> setiosflags(ios_base::dec)
       >> setbase(ios_base::dec)
-      >> setfill('c')
+      >> setfill('c') // { dg-warning "deprecated" }
       >> setprecision(5)
       >> setw(20)
       >> ws;