HomePhabricator

test: disable unit tests that are UB before C++20

Description

test: disable unit tests that are UB before C++20

Summary:
See https://en.cppreference.com/w/cpp/language/operator_arithmetic.html#Bitwise_shift_operators
Before C++20:

For negative a, the behavior of a << b is undefined.

Test Plan:
With Clang + UBSAN:
ninja check

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Subscribers: Fabien

Differential Revision: https://reviews.bitcoinabc.org/D18601

Details

Provenance
PiRKAuthored on Sep 10 2025, 18:45
PiRKPushed on Sep 10 2025, 19:29
Reviewer
Restricted Project
Differential Revision
D18601: test: disable unit tests that are UB before C++20
Parents
rABC7d2a8faffddf: [e.cash] Remove spline animation on about page
Branches
Unknown
Tags
Unknown