qt6-bb10/tests/auto/corelib/global
Marc Mutz 4b6f757020 Make Qt::partial_ordering binary-compatible to std::partial_ordering
In particular, match the value of ::unordered to each std library
implementation.

Legal disclaimer:

The values were provided to this author in a comment on QTBUG-118913.
This author hereby confirms he didn't look at any of the
implementations himself. The stdlib detection macros are taken from
existing code in qcompilerdetection.h. I didn't succeed in googling a
corresponding marker for MSSTL, and I didn't look at the
implementation or Boost.Config to find one, so this patch just assumes
MSSTL as a fall-back, which is probably wrong, since we may still have
Dinkumware and RougeWave STLs to deal with on embedded platforms.

Add tests to ensure the values are the same on all platforms.
To maximize coverage, rename qcompare.qdoc to qcompare.cpp and add a
bunch of compile-time tests there. These depend in part on bit_cast,
which we cannot depend on, so tst_qcompare contains the same tests
using memcpy.

Fixes: QTBUG-118913
Change-Id: I46c922c8e3ea37d7c01a71361c7a689340f9047d
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
2023-11-27 18:34:10 +01:00
..
q20 CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
q_func_info CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qcompare Make Qt::partial_ordering binary-compatible to std::partial_ordering 2023-11-27 18:34:10 +01:00
qflags CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qfloat16 CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qgetputenv CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qglobal Long live Q_(U)INT128_C()! 2023-09-14 18:39:24 +02:00
qglobalstatic CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qhooks CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qkeycombination CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qlogging Fix assert in qCleanupFuncInfo when using QDebug from a lambda with auto 2023-07-11 02:37:58 +02:00
qnativeinterface CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qnumeric CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qoperatingsystemversion CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qrandomgenerator CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qtendian CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qxp tst_qxp_is_virtual_base_of: disable all warnings for GCC < 10 2023-11-13 18:42:01 +00:00
CMakeLists.txt Short live q20::to_address! 2023-03-31 13:10:12 +01:00