From c79795874adef276115f8bcf0b46da4155d2d46d Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Fri, 17 Jun 2016 19:46:40 +0000 Subject: Add Filesystem TS -- Complete Add the completed std::experimental::filesystem implementation and tests. The implementation supports C++11 or newer. The TS is built as part of 'libc++experimental.a'. Users of the TS need to manually link this library. Building and testing the TS can be disabled using the CMake option '-DLIBCXX_ENABLE_FILESYSTEM=OFF'. Currently 'libc++experimental.a' is not installed by default. To turn on the installation of the library use '-DLIBCXX_INSTALL_EXPERIMENTAL_LIBRARY=ON'. llvm-svn: 273034 --- libcxx/test/support/test_macros.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'libcxx/test/support/test_macros.h') diff --git a/libcxx/test/support/test_macros.h b/libcxx/test/support/test_macros.h index 037edbcb989..597c85f2f2c 100644 --- a/libcxx/test/support/test_macros.h +++ b/libcxx/test/support/test_macros.h @@ -93,4 +93,21 @@ #define LIBCPP_STATIC_ASSERT(...) ((void)0) #endif +#define ASSERT_NOEXCEPT(...) \ + static_assert(noexcept(__VA_ARGS__), "Operation must be noexcept") + +#define ASSERT_NOT_NOEXCEPT(...) \ + static_assert(!noexcept(__VA_ARGS__), "Operation must NOT be noexcept") + +namespace test_macros_detail { +template +struct is_same { enum { value = 0};} ; +template +struct is_same { enum {value = 1}; }; +} // namespace test_macros_detail + +#define ASSERT_SAME_TYPE(...) \ + static_assert(test_macros_detail::is_same<__VA_ARGS__>::value, \ + "Types differ uexpectedly") + #endif // SUPPORT_TEST_MACROS_HPP -- cgit v1.2.3