]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/experimental/string_view/operations/find/char/2.cc
Update copyright years.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / experimental / string_view / operations / find / char / 2.cc
index f15d8da4d68e7a9d9bdb3bec8090068ec01eb5cd..bc0ac6fb6ded1cef7d166298d87b650b141cde96 100644 (file)
@@ -1,6 +1,6 @@
-// { dg-options "-std=gnu++14" }
+// { dg-do run { target c++14 } }
 
-// Copyright (C) 2013-2015 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
 #include <experimental/string_view>
 #include <testsuite_hooks.h>
 
-bool
+void
 test02()
 {
-  bool test [[gnu::unused]] = true;
-
   typedef std::experimental::string_view::size_type csize_type;
   csize_type npos = std::experimental::string_view::npos;
   csize_type csz01, csz02;
@@ -84,8 +82,6 @@ test02()
   csz01 = str01.find_first_of('z');
   csz02 = str01.size() - 1;
   VERIFY( csz01 == csz02 );
-
-  return test;
 }
 
 int