diff options
Diffstat (limited to 'libcxx/test')
4 files changed, 74 insertions, 0 deletions
diff --git a/libcxx/test/experimental/utilities/nothing_to_do.pass.cpp b/libcxx/test/experimental/utilities/nothing_to_do.pass.cpp new file mode 100644 index 00000000000..9a59227abdd --- /dev/null +++ b/libcxx/test/experimental/utilities/nothing_to_do.pass.cpp @@ -0,0 +1,13 @@ +// -*- C++ -*- +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under the MIT and the University of Illinois Open +// Source Licenses. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +int main() +{ +} diff --git a/libcxx/test/experimental/utilities/utility/utility.erased.type/erased_type.pass.cpp b/libcxx/test/experimental/utilities/utility/utility.erased.type/erased_type.pass.cpp new file mode 100644 index 00000000000..5f89e5367b0 --- /dev/null +++ b/libcxx/test/experimental/utilities/utility/utility.erased.type/erased_type.pass.cpp @@ -0,0 +1,20 @@ +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under the MIT and the University of Illinois Open +// Source Licenses. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +// <experimental/utility> + +#include <experimental/utility> + +int main() +{ +#if _LIBCPP_STD_VER > 11 + using std::experimental::erased_type; + constexpr erased_type e{}; +#endif +} diff --git a/libcxx/test/experimental/utilities/utility/utility.synop/includes.pass.cpp b/libcxx/test/experimental/utilities/utility/utility.synop/includes.pass.cpp new file mode 100644 index 00000000000..bcdd8b3879e --- /dev/null +++ b/libcxx/test/experimental/utilities/utility/utility.synop/includes.pass.cpp @@ -0,0 +1,21 @@ +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under the MIT and the University of Illinois Open +// Source Licenses. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +// <experimental/utility> + +#include <experimental/utility> + +int main() +{ +#if _LIBCPP_STD_VER > 11 +# ifndef _LIBCPP_UTILITY +# error "<experimental/utility> must include <utility>" +# endif +#endif /* _LIBCPP_STD_VER > 11 */ +} diff --git a/libcxx/test/experimental/utilities/utility/version.pass.cpp b/libcxx/test/experimental/utilities/utility/version.pass.cpp new file mode 100644 index 00000000000..437712454ae --- /dev/null +++ b/libcxx/test/experimental/utilities/utility/version.pass.cpp @@ -0,0 +1,20 @@ +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under the MIT and the University of Illinois Open +// Source Licenses. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +// <experimental/utility> + +#include <experimental/utility> + +#ifndef _LIBCPP_VERSION +#error _LIBCPP_VERSION not defined +#endif + +int main() +{ +} |