]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/27_io/manipulators/standard/char/quoted.cc
Update copyright years.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 27_io / manipulators / standard / char / quoted.cc
index 15de1d498cf468abec3b3d11425d1c365de65559..2b14d6246559f922a39699fc845f4983fd8330ef 100644 (file)
@@ -1,7 +1,6 @@
-// { dg-do run }
-// { dg-options "-std=gnu++14" }
+// { dg-do run { target c++14 } }
 
-// Copyright (C) 2013-2016 Free Software Foundation, Inc.
+// Copyright (C) 2013-2021 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
@@ -18,7 +17,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// 27.7.6 - Quoted manipulators                [quoted.manip]
+// C++14 27.7.6 - Quoted manipulators          [quoted.manip]
 
 #include <string>
 #include <sstream>
@@ -29,7 +28,6 @@ void
 test01()
 {
   //  Basic test from paper.
-  bool test [[gnu::unused]] = true;
   std::stringstream ss;
   std::string original = "foolish me";
   std::string round_trip;
@@ -42,7 +40,6 @@ void
 test02()
 {
   //  Test skipws correctness.
-  bool test [[gnu::unused]] = true;
   std::stringstream ss;
   ss << std::quoted("Hello Goodbye") << ' ' << 1 << ' ' << 2;
   std::string song;
@@ -57,7 +54,6 @@ void
 test03()
 {
   //  Test read of unquoted string.
-  bool test [[gnu::unused]] = true;
   std::stringstream ss;
   ss << "Alpha Omega";
   std::string testit;
@@ -69,7 +65,6 @@ auto
 test04(const std::string& message)
 {
   //  Test 'const basic_string&'
-  bool test [[gnu::unused]] = true;
   std::stringstream ss;
   ss << "**  Error: " << std::quoted(message) << "  **";
   return ss.str();