qt6-bb10/tests/auto/corelib
Ivan Solovev 0d85d0a72f qfloat16: extend comparison with integral types
qfloat16 implemented comparison with int, but not with other integral
types. As a result, comparing qfloat16 vs qint64 or short was
ambiguous, because the compiler had (at least) two options:
* qint64 -> int
* qint64 -> float

Fix it by explicitly introducing comparison operators for other integral
types.
Use the new compare helper macros for that, and implement helper methods
as templates restricted on integral types.

Note that we have to manually extend the std::is_integral type trait
because libstdc++ only treats __{u}int128_t types as integral when
compiling in -std=gnu++XX mode, and we compile Qt in -std=c++XX mode.

Fixes: QTBUG-117637
Change-Id: Id0c074af1e9ccc2c2492eb2cc4ee62a4a7131b07
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
2023-12-08 14:53:37 +01:00
..
animation Tests: remove blacklisted CIs no longer available 2023-12-06 22:07:44 +01:00
global qfloat16: extend comparison with integral types 2023-12-08 14:53:37 +01:00
io Tests: remove blacklisted CIs no longer available 2023-12-06 22:07:44 +01:00
ipc QSharedMemory: fix attach() -> create() for non-legacy SystemV mode 2023-11-08 15:56:54 +01:00
itemmodels Q(Persistent)ModelIndex: use new test framework for op== 2023-11-13 17:35:54 +02:00
kernel QMetaEnum: let key(s)ToValue match fully-qualified unscoped enumerators 2023-11-26 22:51:49 +02:00
mimetypes Long live QSpan as public API! 2023-12-07 22:38:15 +00:00
platform Android: fix and simplify the orientation change logic 2023-12-05 16:28:12 +00:00
plugin QFactoryLoader: add metaDataKeys() to return just the "Keys" entry 2023-11-28 03:14:03 -08:00
serialization Tests: remove blacklisted CIs no longer available 2023-12-06 22:07:44 +01:00
text tst_QString: explain TransientDefaultLocale better 2023-12-07 23:55:08 +01:00
thread Tests: remove blacklisted CIs no longer available 2023-12-06 22:07:44 +01:00
time Give the caller control over the century used for two-digit dates 2023-12-08 11:40:36 +01:00
tools Make QAtomicScopedValueRollback public API 2023-12-08 02:24:41 +01:00
CMakeLists.txt tests: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-17 21:56:49 +01:00