1 //===----------------------------------------------------------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 // UNSUPPORTED: c++03, c++11, c++14, c++17
10 // UNSUPPORTED: no-filesystem
11 // UNSUPPORTED: availability-filesystem-missing
15 // class recursive_directory_iterator
17 // bool operator==(default_sentinel_t) const noexcept { // since C++20
18 // return *this == recursive_directory_iterator();
24 #include "filesystem_include.h"
25 #include "test_comparisons.h"
27 int main(int, char**) {
28 AssertEqualityAreNoexcept
<fs::recursive_directory_iterator
>();
29 AssertEqualityReturnBool
<fs::recursive_directory_iterator
>();
31 fs::recursive_directory_iterator i
;
32 assert(testEquality(i
, std::default_sentinel
, true));