Skip to content

Commit 5a50c33

Browse files
johnmcfarlaneJohn McFarlane
authored and
John McFarlane
committed
test UBSan
1 parent f239b5b commit 5a50c33

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/test.yml

+3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ jobs:
1010
# Build and test many combinations on Linux/OS X using Conan
1111
clang-tidy:
1212
strategy:
13+
fail-fast: false
1314
matrix:
1415
int128: ["True", "False"]
1516

@@ -71,6 +72,7 @@ jobs:
7172
# Build and test many combinations on Linux/OS X using Conan
7273
conan:
7374
strategy:
75+
fail-fast: false
7476
matrix:
7577
name: [
7678
clang-14-libc++, clang-14-libstdc++,
@@ -226,6 +228,7 @@ jobs:
226228
# Build and test on Windows using Conan
227229
windows:
228230
strategy:
231+
fail-fast: false
229232
matrix:
230233
name: [2022-64, 2022-32, 2019-64, 2019-32]
231234
include:

test/unit/overflow/overflow_int.cpp

+2-4
Original file line numberDiff line numberDiff line change
@@ -515,11 +515,9 @@ namespace test_used_digits {
515515
namespace {
516516
TEST(overflow_integer, pre_increment) // NOLINT
517517
{
518-
auto a = cnl::overflow_integer<>{INT_MAX - 1};
518+
auto a = INT_MAX;
519519
auto& b = ++a;
520-
static_assert(
521-
std::is_same<decltype(b), cnl::overflow_integer<>&>::value,
522-
"static_integer pre-increment return value");
520+
--a;
523521
ASSERT_EQ(&b, &a) << "static_integer pre-increment return address";
524522
ASSERT_EQ(INT_MAX, b) << "static_integer pre-increment";
525523
}

0 commit comments

Comments
 (0)