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 | //===----------------------------------------------------------------------===// |
8 | |
9 | // UNSUPPORTED: c++03, c++11, c++14 |
10 | |
11 | // <filesystem> |
12 | |
13 | // class directory_entry |
14 | |
15 | // directory_entry() noexcept = default; |
16 | |
17 | #include <filesystem> |
18 | #include <type_traits> |
19 | #include <cassert> |
20 | |
21 | #include "test_macros.h" |
22 | namespace fs = std::filesystem; |
23 | |
24 | int main(int, char**) { |
25 | using namespace fs; |
26 | // Default |
27 | { |
28 | static_assert(std::is_nothrow_default_constructible<directory_entry>::value, |
29 | "directory_entry must have a nothrow default constructor" ); |
30 | directory_entry e; |
31 | assert(e.path() == path()); |
32 | } |
33 | |
34 | return 0; |
35 | } |
36 | |