]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/experimental/string_view/inserters/char/1.cc
Update copyright years.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / experimental / string_view / inserters / char / 1.cc
index f1d19a18cdcd25be0b4f512b92ad9c7a0b204aef..2dc36ac2ee3f5fb912b4e7ec122d99ffbddd4d33 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-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
 #include <iostream>
 #include <testsuite_hooks.h>
 
-bool
+void
 test01()
 {
-  bool test [[gnu::unused]] = true;
-
   typedef std::experimental::string_view::size_type csize_type;
   typedef std::experimental::string_view::const_reference cref;
   typedef std::experimental::string_view::reference ref;
@@ -56,8 +54,6 @@ test01()
   
   std::experimental::string_view hello_world;
   std::cout << hello_world;
-
-  return test;
 }
 
 int