]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/experimental/string_view/literals/values-char8_t.cc
Update copyright years.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / experimental / string_view / literals / values-char8_t.cc
index f804c547eb4475b6db261df2897101cfc503afd7..3b72d7d146e77c919dd77fbd919b6dc6d6d7aa1f 100644 (file)
@@ -1,7 +1,7 @@
 // { dg-options "-fchar8_t" }
 // { dg-do run { target c++14 } }
 
-// Copyright (C) 2013-2017 Free Software Foundation, Inc.
+// Copyright (C) 2013-2022 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
@@ -27,9 +27,7 @@ test01()
   using namespace std::experimental::literals::string_view_literals;
 
   std::experimental::string_view planet = "Mercury"sv;
-#ifdef _GLIBCXX_USE_WCHAR_T
   std::experimental::wstring_view wplanet = L"Venus"sv;
-#endif
 #ifdef _GLIBCXX_USE_CHAR8_T
   std::experimental::u8string_view u8planet = u8"Mars"sv;
 #else
@@ -39,9 +37,7 @@ test01()
   std::experimental::u32string_view u32planet = U"Saturn"sv;
 
   VERIFY( planet == std::experimental::string_view("Mercury") );
-#ifdef _GLIBCXX_USE_WCHAR_T
   VERIFY( wplanet == std::experimental::wstring_view(L"Venus") );
-#endif
 #ifdef _GLIBCXX_USE_CHAR8_T
   VERIFY( u8planet == std::experimental::u8string_view(u8"Mars") );
 #else
@@ -57,9 +53,7 @@ test02()
   using namespace std::experimental::literals::string_view_literals;
 
   std::experimental::string_view planet_cratered = "Mercury\0cratered"sv;
-#ifdef _GLIBCXX_USE_WCHAR_T
   std::experimental::wstring_view wplanet_cratered = L"Venus\0cratered"sv;
-#endif
 #ifdef _GLIBCXX_USE_CHAR8_T
   std::experimental::u8string_view u8planet_cratered = u8"Mars\0cratered"sv;
 #else
@@ -70,10 +64,8 @@ test02()
 
   VERIFY( planet_cratered ==
          std::experimental::string_view("Mercury\0cratered", 16) );
-#ifdef _GLIBCXX_USE_WCHAR_T
   VERIFY( wplanet_cratered ==
          std::experimental::wstring_view(L"Venus\0cratered", 14) );
-#endif
 #ifdef _GLIBCXX_USE_CHAR8_T
   VERIFY( u8planet_cratered ==
          std::experimental::u8string_view(u8"Mars\0cratered", 13) );