]>
git.ipfire.org Git - thirdparty/gcc.git/blob - libstdc++-v3/testsuite/std/ranges/adaptors/lwg3715.cc
1 // { dg-do run { target c++23 } }
3 // Verify LWG 3715 changes.
7 #include <testsuite_hooks.h>
12 std::istringstream
ints("0 1 2 3 4");
13 auto i
= std::views::istream
<int>(ints
);
14 auto r4
= std::views::counted(i
.begin(), 4) | std::views::chunk(2);
15 VERIFY( !r4
.empty() );
21 std::istringstream
ints("0 1 2 3 4");
22 auto i
= std::views::istream
<int>(ints
);
23 auto r0
= std::views::counted(i
.begin(), 0) | std::views::chunk(2);