[libcxx] [test] Mark tests for libcxx specific implementation details with LIBCPP_ONLY()

This matches an existing marking in enum.path.format.pass.cpp.

Differential Revision: https://reviews.llvm.org/D89534
This commit is contained in:
Martin Storsjö 2020-10-16 11:22:33 +03:00
parent 701fa703fc
commit 66427d7359
4 changed files with 4 additions and 4 deletions

View File

@ -30,7 +30,7 @@ int main(int, char**) {
typedef std::underlying_type<E>::type UT;
static_assert(!std::is_convertible<E, UT>::value, "");
static_assert(std::is_same<UT, unsigned short>::value, ""); // Implementation detail
LIBCPP_ONLY(static_assert(std::is_same<UT, unsigned short>::value, "")); // Implementation detail
typedef check_bitmask_type<E, E::skip_existing, E::update_existing> BitmaskTester;
assert(BitmaskTester::check());

View File

@ -30,7 +30,7 @@ int main(int, char**) {
// Check that E is a scoped enum by checking for conversions.
typedef std::underlying_type<E>::type UT;
static_assert(!std::is_convertible<E, UT>::value, "");
static_assert(std::is_same<UT, unsigned char>::value, "");
LIBCPP_ONLY(static_assert(std::is_same<UT, unsigned char>::value, ""));
typedef check_bitmask_type<E, E::follow_directory_symlink, E::skip_permission_denied> BitmaskTester;
assert(BitmaskTester::check());

View File

@ -29,7 +29,7 @@ int main(int, char**) {
typedef std::underlying_type<E>::type UT;
static_assert(!std::is_convertible<E, UT>::value, "");
static_assert(std::is_same<UT, signed char>::value, ""); // Implementation detail
LIBCPP_ONLY(static_assert(std::is_same<UT, signed char>::value, "")); // Implementation detail
static_assert(
E::none == ME(0) &&

View File

@ -31,7 +31,7 @@ int main(int, char**) {
typedef std::underlying_type<E>::type UT;
static_assert(!std::is_convertible<E, UT>::value, "");
static_assert(std::is_same<UT, unsigned >::value, ""); // Implementation detail
LIBCPP_ONLY(static_assert(std::is_same<UT, unsigned >::value, "")); // Implementation detail
typedef check_bitmask_type<E, E::group_all, E::owner_all> BitmaskTester;
assert(BitmaskTester::check());