Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / libcxx / test / std / input.output / filesystems / class.rec.dir.itr / rec.dir.itr.members / equal.pass.cpp
blob0652501bae8930024a13fb2e1d95022fe01d6e66
1 //===----------------------------------------------------------------------===//
2 //
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
6 //
7 //===----------------------------------------------------------------------===//
9 // UNSUPPORTED: c++03, c++11, c++14, c++17
10 // UNSUPPORTED: no-filesystem
11 // UNSUPPORTED: availability-filesystem-missing
13 // <filesystem>
15 // class recursive_directory_iterator
17 // bool operator==(default_sentinel_t) const noexcept { // since C++20
18 // return *this == recursive_directory_iterator();
19 // }
21 #include <cassert>
22 #include <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));
34 return 0;