summaryrefslogtreecommitdiffstats
path: root/tests/auto/integrationtests/collections/tst_collections.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/integrationtests/collections/tst_collections.cpp')
-rw-r--r--tests/auto/integrationtests/collections/tst_collections.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/auto/integrationtests/collections/tst_collections.cpp b/tests/auto/integrationtests/collections/tst_collections.cpp
index a4901942bf..39017781d1 100644
--- a/tests/auto/integrationtests/collections/tst_collections.cpp
+++ b/tests/auto/integrationtests/collections/tst_collections.cpp
@@ -152,9 +152,7 @@ private slots:
void qtimerList();
void containerTypedefs();
void forwardDeclared();
-#if defined(Q_ALIGNOF) && defined(Q_DECL_ALIGN)
void alignment();
-#endif
void QTBUG13079_collectionInsideCollection();
void foreach_2();
@@ -3397,6 +3395,12 @@ void tst_Collections::alignment()
testAssociativeContainerAlignment<QHash<Aligned128, Aligned4> >();
testAssociativeContainerAlignment<QHash<Aligned128, Aligned128> >();
}
+
+#else
+void tst_Collections::alignment()
+{
+ QSKIP("Compiler doesn't support necessary extension keywords");
+}
#endif
#ifndef QT_NO_TEMPLATE_TEMPLATE_PARAMETERS