-// { dg-do run }
-// { dg-options "-std=gnu++14" }
+// { dg-do run { target c++14 } }
-// Copyright (C) 2013-2015 Free Software Foundation, Inc.
+// Copyright (C) 2013-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
// 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>
test01()
{
// Basic test from paper.
- bool test [[gnu::unused]] = true;
std::stringstream ss;
std::string original = "foolish me";
std::string round_trip;
test02()
{
// Test skipws correctness.
- bool test [[gnu::unused]] = true;
std::stringstream ss;
ss << std::quoted("Hello Goodbye") << ' ' << 1 << ' ' << 2;
std::string song;
test03()
{
// Test read of unquoted string.
- bool test [[gnu::unused]] = true;
std::stringstream ss;
ss << "Alpha Omega";
std::string testit;
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();