]> git.ipfire.org Git - thirdparty/gcc.git/blame - libstdc++-v3/testsuite/experimental/filesystem/iterators/106201.cc
libstdc++: Remove dg-options "-std=gnu++20" from remaining tests
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / experimental / filesystem / iterators / 106201.cc
CommitLineData
38922514
JW
1// { dg-do compile { target c++20 } }
2// { dg-require-filesystem-ts "" }
3
4// PR libstdc++/106201 constraint recursion in path(Source const&) constructor.
5
6#include <experimental/filesystem>
7#include <iterator>
8#include <concepts>
9namespace fs = std::experimental::filesystem;
10using I = std::counted_iterator<fs::directory_iterator>;
11static_assert( std::swappable<I> );
12using R = std::counted_iterator<fs::recursive_directory_iterator>;
13static_assert( std::swappable<R> );