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 // UNSUPPORTED: availability-filesystem-missing 11 12 // <filesystem> 13 14 // class path 15 16 // path() noexcept 17 18 #include <filesystem> 19 #include <type_traits> 20 #include <cassert> 21 22 #include "test_macros.h" 23 namespace fs = std::filesystem; 24 main(int,char **)25int main(int, char**) { 26 using namespace fs; 27 static_assert(std::is_nothrow_default_constructible<path>::value, ""); 28 const path p; 29 assert(p.empty()); 30 31 return 0; 32 } 33