]> git.ipfire.org Git - thirdparty/gcc.git/blob - 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
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>
9 namespace fs = std::experimental::filesystem;
10 using I = std::counted_iterator<fs::directory_iterator>;
11 static_assert( std::swappable<I> );
12 using R = std::counted_iterator<fs::recursive_directory_iterator>;
13 static_assert( std::swappable<R> );