summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/global/qglobal/tst_qglobal.cpp
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2024-03-22 11:14:25 +0000
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2024-03-22 14:31:39 +0000
commitda51b957c0d420d9615d3761015f9a0a5562cd3b (patch)
tree2ae5fe452eacb0632cc59e1b11534ef533a736bb /tests/auto/corelib/global/qglobal/tst_qglobal.cpp
parentd2dbe2d7f75d32d5f0da0b1676630d7fed9a39a0 (diff)
Revert "QTypeInfo: add detection for Clang's __is_trivially_relocatable"
This reverts commit f4bac3ca173be9f219099c04e76d6d62c4d0e19e. It broke builds with Xcode 15 Change-Id: Iee232658ede3dfb09d65f3f6a95410c069941421 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'tests/auto/corelib/global/qglobal/tst_qglobal.cpp')
-rw-r--r--tests/auto/corelib/global/qglobal/tst_qglobal.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/tests/auto/corelib/global/qglobal/tst_qglobal.cpp b/tests/auto/corelib/global/qglobal/tst_qglobal.cpp
index 524212e933..1a19048bbe 100644
--- a/tests/auto/corelib/global/qglobal/tst_qglobal.cpp
+++ b/tests/auto/corelib/global/qglobal/tst_qglobal.cpp
@@ -930,20 +930,6 @@ struct Trivial1
static_assert(!QTypeInfo<Trivial1>::isComplex);
static_assert(QTypeInfo<Trivial1>::isRelocatable);
-#if defined(__has_builtin)
-#if __has_builtin(__is_trivially_relocatable) && __has_attribute(trivial_abi)
-struct [[clang::trivial_abi]] TrivialAbi1
-{
- ~TrivialAbi1();
- TrivialAbi1(TrivialAbi1 &&);
-};
-static_assert(__has_builtin(__is_trivially_relocatable));
-static_assert(__is_trivially_relocatable(TrivialAbi1));
-static_assert(QTypeInfo<TrivialAbi1>::isComplex);
-static_assert(QTypeInfo<TrivialAbi1>::isRelocatable);
-#endif
-#endif
-
QT_END_NAMESPACE
QTEST_APPLESS_MAIN(tst_QGlobal)