Commit 38c7b74d by Patrick Palka

libstdc++: Add missing call to unused subroutine in split_view test

libstdc++-v3/ChangeLog:

	* testsuite/std/ranges/adaptors/split.cc (test03): Don't include the
	null terminator of the underlying string as part of the test_range.
	(main): Call test03.
parent 1b425f3a
2020-02-19 Patrick Palka <ppalka@redhat.com>
* testsuite/std/ranges/adaptors/split.cc (test03): Don't include the
null terminator of the underlying string as part of the test_range.
(main): Call test03.
2020-02-19 Jonathan Wakely <jwakely@redhat.com>
* include/bits/stl_iterator.h (common_iterator): Add copyable<I>
......
......@@ -64,7 +64,7 @@ void
test03()
{
char x[] = "the quick brown fox";
test_range<char, forward_iterator_wrapper> rx(x);
test_range<char, forward_iterator_wrapper> rx(x, x+sizeof(x)-1);
auto v = rx | views::split(' ');
auto i = v.begin();
VERIFY( ranges::equal(*i++, "the"sv) );
......@@ -79,4 +79,5 @@ main()
{
test01();
test02();
test03();
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment