32 lines · cpp
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-exception6//7//===----------------------------------------------------------------------===//8 9// UNSUPPORTED: c++03, c++11, c++1410 11// <filesystem>12 13// class path14 15// path() noexcept16 17#include <filesystem>18#include <type_traits>19#include <cassert>20 21#include "test_macros.h"22namespace fs = std::filesystem;23 24int main(int, char**) {25 using namespace fs;26 static_assert(std::is_nothrow_default_constructible<path>::value, "");27 const path p;28 assert(p.empty());29 30 return 0;31}32