]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/experimental/string_view/operations/rfind/wchar_t/1.cc
Update copyright years.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / experimental / string_view / operations / rfind / wchar_t / 1.cc
index 2d2b3c6eca54fff835ab4d6ece146e841f947197..7105ad09fecb2c3aeb208b1285c2452114b7fe10 100644 (file)
@@ -1,6 +1,6 @@
-// { dg-options "-std=gnu++1y" }
+// { dg-do run { target c++14 } }
 
-// Copyright (C) 2013 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
 
 // basic_string_view rfind
 
-bool
+void
 test01()
 {
-  bool test [[gnu::unused]] = true;
-
   typedef std::experimental::wstring_view::size_type csize_type;
   typedef std::experimental::wstring_view::const_reference cref;
   typedef std::experimental::wstring_view::reference ref;
@@ -85,8 +83,6 @@ test01()
   VERIFY( csz01 == csz02 );
   csz01 = str01.rfind(L'/');
   VERIFY( csz01 == npos );
-
-  return test;
 }
 
 int