qt6-bb10/tests/auto/corelib
Ivan Solovev cfc385ce3f qfloat16: make relational operators constexpr when QFLOAT16_IS_NATIVE
When qfloat16 uses float as an underlying type, the operators cannot be
constexpr, because operator float() is not constexpr.
However, operator NativeType() is, so we can make the relational
operators constexpr when we are using a native 16-bit float as an
underlying type.

To avoid code duplication, introduce new temporary macros for
constexpr and Q_DECLARE_PARTIALLY_ORDERED_LITERAL_TYPE.
Extend the tests to verify that the operators are constexpr when
native float16 type is used.

Task-number: QTBUG-119433
Pick-to: 6.7
Change-Id: I001b087d78c398c71b71a504b65c316199dd4792
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
2024-01-19 13:58:57 +01:00
..
animation Tests: remove blacklisted CIs no longer available 2023-12-06 22:07:44 +01:00
global qfloat16: make relational operators constexpr when QFLOAT16_IS_NATIVE 2024-01-19 13:58:57 +01:00
io Fix some -Wunused-* warnings on MinGW 2024-01-10 09:45:48 +01:00
ipc Skip tst_QSharedMemory::useTooMuchMemory 2023-12-22 17:01:01 +02:00
itemmodels Introduce macros to simplify testing comparison 2024-01-19 12:58:57 +00:00
kernel QObject: assert connection type isn't UniqueConnection for lambdas 2023-12-22 19:16:47 +02:00
mimetypes QMimeDataBase: Remove dead code 2024-01-16 22:56:44 +01:00
platform Android: fix and simplify the orientation change logic 2023-12-05 16:28:12 +00:00
plugin Resurrect tests/auto/corelib/plugin/qpluginloader/machtest 2024-01-10 00:44:34 +01:00
serialization Tests: remove blacklisted CIs no longer available 2023-12-06 22:07:44 +01:00
text tst_QStringView: don't go through the QString constructor 2024-01-14 17:49:12 -08:00
thread QFuture: Don't use QFutureCallOutInterface for continuations 2023-12-13 21:54:00 +01:00
time Introduce macros to simplify testing comparison 2024-01-19 12:58:57 +00:00
tools Dissociate QTypeRevision from QVersionNumber 2024-01-10 02:25:24 +00:00
CMakeLists.txt tests: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-17 21:56:49 +01:00