-// { 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
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 );