[libcxx-commits] [libcxx] [libcxx] applies integer-like changes from [P2393R1] (PR #74161)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Jan 8 10:42:45 PST 2024
================
@@ -67,3 +68,134 @@ static_assert(std::weakly_incrementable<difference_type_and_void_minus>);
static_assert(std::weakly_incrementable<noncopyable_with_difference_type>);
static_assert(std::weakly_incrementable<noncopyable_without_difference_type>);
static_assert(std::weakly_incrementable<noncopyable_with_difference_type_and_minus>);
+
+#if !defined(TEST_HAS_NO_INT128)
+static_assert(std::weakly_incrementable<extended_integral_difference_type<__int128>>);
+#endif
+
+#if defined(__BIT_TYPES_DEFINED__)
+# pragma GCC diagnostic push
+# pragma GCC diagnostic ignored "-Wbit-int-extension"
----------------
ldionne wrote:
Suggestion: use
```
TEST_DIAGNOSTIC_PUSH
TEST_GCC_DIAGNOSTIC_IGNORED(-Wbit-int-extension)
```
from `test_macros.h`. Non-blocking comment.
https://github.com/llvm/llvm-project/pull/74161
More information about the libcxx-commits
mailing list