Skip to content

Commit 5010d74

Browse files
committed
test UBSan
1 parent 7f4c744 commit 5010d74

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
@@ -39,6 +39,7 @@ jobs:
3939
# Build and test latest on Linux using only CMake
4040
cmake:
4141
strategy:
42+
fail-fast: false
4243
matrix:
4344
compiler: [clang, gcc]
4445
include:
@@ -105,6 +106,7 @@ jobs:
105106
# Build and test many combinations on Linux/OS X using Conan
106107
conan:
107108
strategy:
109+
fail-fast: false
108110
matrix:
109111
name: [
110112
clang-head-libc++, clang-head-libstdc++,
@@ -242,6 +244,7 @@ jobs:
242244
windows:
243245
runs-on: windows-2019
244246
strategy:
247+
fail-fast: false
245248
matrix:
246249
arch: [x86_64, x86]
247250
include:

test/unit/overflow/overflow_int.cpp

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

0 commit comments

Comments
 (0)