[libcxx-commits] [libcxx] [libc++] Workaround clang bug in __has_unique_object_representations (PR #95314)
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Jun 13 00:42:43 PDT 2024
================
@@ -14,95 +14,95 @@
#include <type_traits>
-#include "test_macros.h"
-
-template <class T>
-void test_has_unique_object_representations()
-{
- static_assert( std::has_unique_object_representations<T>::value, "");
- static_assert( std::has_unique_object_representations<const T>::value, "");
- static_assert( std::has_unique_object_representations<volatile T>::value, "");
- static_assert( std::has_unique_object_representations<const volatile T>::value, "");
-
- static_assert( std::has_unique_object_representations_v<T>, "");
- static_assert( std::has_unique_object_representations_v<const T>, "");
- static_assert( std::has_unique_object_representations_v<volatile T>, "");
- static_assert( std::has_unique_object_representations_v<const volatile T>, "");
+template <bool ExpectedValue, class T>
----------------
philnik777 wrote:
While we're at it, could we make this a `.compile.pass.cpp`?
https://github.com/llvm/llvm-project/pull/95314
More information about the libcxx-commits
mailing list