summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorQt CI Bot <qt_ci_bot@qt-project.org>2021-03-25 13:40:30 +0000
committerQt CI Bot <qt_ci_bot@qt-project.org>2021-03-25 13:40:30 +0000
commit14eeb520858b624a2c9e09b5bd95ea8fb90a1f5a (patch)
tree002d530f767f8d1500545fab43ff524ebe80cba3 /tests
parent2d4699501b0943eb44b24b6087230115301445ca (diff)
parentce83e56cfeb2806181ec1daade9690f4c90b901c (diff)
Merge integration refs/builds/qtci/dev/1616667899
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/corelib/kernel/qmetatype/tst_qmetatype.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/auto/corelib/kernel/qmetatype/tst_qmetatype.cpp b/tests/auto/corelib/kernel/qmetatype/tst_qmetatype.cpp
index df9beabe73..09a5125886 100644
--- a/tests/auto/corelib/kernel/qmetatype/tst_qmetatype.cpp
+++ b/tests/auto/corelib/kernel/qmetatype/tst_qmetatype.cpp
@@ -2128,5 +2128,15 @@ void tst_QMetaType::constexprMetaTypeIds()
Q_UNUSED(metaType);
}
+struct S {
+ using value_type = S; // used to cause compilation error with Qt6
+ int begin();
+ int end();
+};
+
+// should not cause a compilation failure
+// used to cause issues due to S being equal to S::value_type
+Q_DECLARE_METATYPE(S)
+
QTEST_MAIN(tst_QMetaType)
#include "tst_qmetatype.moc"