forked from OSchip/llvm-project
[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:
parent
701fa703fc
commit
66427d7359
|
@ -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());
|
||||
|
|
|
@ -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());
|
||||
|
|
|
@ -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) &&
|
||||
|
|
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue