From c9bfd34fa00eb349f6fc37cbea58b71d96a05138 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Mon, 6 Aug 2012 18:15:49 +0200 Subject: Enable QAtomicInteger for char16_t and char32_t Those are regular, integer types, of 16- and 32-bit width, respectively. C++11's std::atomic supports them, so we should too. C++11 also supports wchar_t, but since that type's size can change, I don't feel like support for it in Qt is pressing. Change-Id: I945b641c91a8a98be82715f878c382dee58ac98b Reviewed-by: Olivier Goffart --- tests/auto/corelib/thread/qatomicint/tst_qatomicint.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests/auto/corelib/thread/qatomicint') diff --git a/tests/auto/corelib/thread/qatomicint/tst_qatomicint.cpp b/tests/auto/corelib/thread/qatomicint/tst_qatomicint.cpp index 1283083f0e..fbabb115a1 100644 --- a/tests/auto/corelib/thread/qatomicint/tst_qatomicint.cpp +++ b/tests/auto/corelib/thread/qatomicint/tst_qatomicint.cpp @@ -190,6 +190,10 @@ void tst_QAtomicInt::warningFreeHelper() warningFreeHelperTemplate >(); constexprFunctionsHelperTemplate >(); constexprFunctionsHelperTemplate >(); +# ifdef Q_COMPILER_UNICODE_STRINGS + warningFreeHelperTemplate >(); + constexprFunctionsHelperTemplate >(); +# endif #endif #ifdef Q_ATOMIC_INT16_IS_SUPPORTED @@ -197,6 +201,10 @@ void tst_QAtomicInt::warningFreeHelper() warningFreeHelperTemplate >(); constexprFunctionsHelperTemplate >(); constexprFunctionsHelperTemplate >(); +# ifdef Q_COMPILER_UNICODE_STRINGS + warningFreeHelperTemplate >(); + constexprFunctionsHelperTemplate >(); +# endif #endif #ifdef Q_ATOMIC_INT8_IS_SUPPORTED -- cgit v1.2.3