]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/experimental/string_view/modifiers/remove_prefix/char/1.cc
Update copyright years.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / experimental / string_view / modifiers / remove_prefix / char / 1.cc
index 7de8c3d8de3a3e1d999ae6ad9a92b52747241012..ba5f7cd8f0d43fa3e5a4a352456b2d3728772934 100644 (file)
@@ -1,6 +1,6 @@
 // { dg-do run { target c++14 } }
 
-// Copyright (C) 2013-2016 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
 void
 test01()
 {
-  bool test [[gnu::unused]] = true;
-
   using namespace std::experimental;
 
   string_view str0{"olympus mons"};
-  string_view::pointer p = str0.data();
+  string_view::const_pointer p = str0.data();
   str0.remove_prefix(4);
   VERIFY( str0.data() == p + 4);
   VERIFY( str0.length() == 8 );