CI updates

This commit is contained in:
Markus F.X.J. Oberhumer
2024-06-21 18:19:59 +02:00
parent ad566d793a
commit 17cf73001c
4 changed files with 40 additions and 4 deletions
+3 -3
View File
@@ -491,7 +491,7 @@ struct CheckSignedness {
};
template <class A, class B>
struct TestNoAliasingStruct {
struct TestNoAliasingStruct { // check working -fno-strict-aliasing
static noinline bool test(A *a, B *b) noexcept {
*a = 0;
*b = 0;
@@ -504,10 +504,10 @@ static forceinline bool testNoAliasing(A *a, B *b) noexcept {
return TestNoAliasingStruct<A, B>::test(a, b);
}
template <class T>
struct TestIntegerWrap {
struct TestIntegerWrap { // check working -fno-strict-overflow
static inline bool inc_gt(const T x) noexcept { return x + 1 > x; }
static inline bool dec_lt(const T x) noexcept { return x - 1 < x; }
static inline bool neg_eq(const T x) noexcept { return T(0) - x == x; }
static inline bool neg_eq(const T x) noexcept { return T(T(0) - x) == x; }
};
//