diff options
author | Louis Dionne <ldionne@apple.com> | 2019-03-19 19:27:29 +0000 |
---|---|---|
committer | Louis Dionne <ldionne@apple.com> | 2019-03-19 19:27:29 +0000 |
commit | e76d13a4875fca2b2046515e4bcc3e236b10bda0 (patch) | |
tree | 3a4e49180f52320007eea409a9fd506399c502da /test/std/input.output/filesystems/class.directory_iterator/directory_iterator.members/default_ctor.pass.cpp | |
parent | 6ba69cac26f7cd31f1662338dd77a5748bb4b51d (diff) |
Revert "[libc++] Build <filesystem> support as part of the dylib"
When I applied r356500 (https://reviews.llvm.org/D59152), I somehow
deleted all of filesystem's tests. I will revert r356500 and re-apply
it properly.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@356505 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/std/input.output/filesystems/class.directory_iterator/directory_iterator.members/default_ctor.pass.cpp')
-rw-r--r-- | test/std/input.output/filesystems/class.directory_iterator/directory_iterator.members/default_ctor.pass.cpp | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/test/std/input.output/filesystems/class.directory_iterator/directory_iterator.members/default_ctor.pass.cpp b/test/std/input.output/filesystems/class.directory_iterator/directory_iterator.members/default_ctor.pass.cpp new file mode 100644 index 000000000..9f60ec286 --- /dev/null +++ b/test/std/input.output/filesystems/class.directory_iterator/directory_iterator.members/default_ctor.pass.cpp @@ -0,0 +1,36 @@ +//===----------------------------------------------------------------------===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// + +// UNSUPPORTED: c++98, c++03 + +// <filesystem> + +// class directory_iterator + +// directory_iterator::directory_iterator() noexcept + + +#include "filesystem_include.hpp" +#include <type_traits> +#include <cassert> + +#include "test_macros.h" + + +int main(int, char**) { + { + static_assert(std::is_nothrow_default_constructible<fs::directory_iterator>::value, ""); + } + { + fs::directory_iterator d1; + const fs::directory_iterator d2; + assert(d1 == d2); + } + + return 0; +} |