1 //===----------------------------------------------------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // UNSUPPORTED: c++98, c++03
12 // <experimental/filesystem>
16 // void clear() noexcept
18 #include <experimental/filesystem>
19 #include <type_traits>
22 #include "test_macros.h"
23 #include "test_iterators.h"
24 #include "count_new.hpp"
25 #include "filesystem_test_helper.hpp"
27 namespace fs = std::experimental::filesystem;
33 ASSERT_NOEXCEPT(p.clear());
34 ASSERT_SAME_TYPE(void, decltype(p.clear()));
39 const path p("/foo/bar/baz");